OOP in PHP
<?php
class SimpleClass
{
    // valid member declarations:
    public $var6 = myConstant;
    public $var7 = self::classConstant;
    public $var8 = array(true, false);
}
?>

The default value must be a constant expression, not (for example) a variable, a class member or a function call.

abstract class qaWindow extends qaSeleniumWrapper
{
    private $map = NULL;
    private $fAppPath = "";
    private function __construct()
    {
    }

    final protected function init($windowID)
    {
        $this->map = new qaUIMap();
        $this->fAppPath = _sgUITestUtilities::applicationPath();
        $this->windowID = $windowID;
    }

    final public function getWindowId()
    {
        return $this->windowID;
    }
}
page_revision: 2, last_edited: 1241737943|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License