OOP in PHP

php

http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners/
http://www.killerphp.com/videos/oop_why_learn_oop/why_learn_oop.html - WHY LEARN OBJECT ORIENTED PHP - (Screencast)
http://net.tutsplus.com/tutorials/php/understanding-and-applying-polymorphism-in-php/ - Understanding and Applying Polymorphism in PHP
http://phpmaster.com/lesser-known-features-of-phps-oo-model/

<?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;
    }
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License