All pastes #927387 Raw Edit

Keloran

public php v1 · immutable
·published 2008-03-04 07:30 UTC
rendered paste body
<?phpclass Hammer{    #Hammer object    private static $oHammer;    #Inherited Properties    public $fConfig = false;    public $cReturn = false;    public $oDB     = false;    public $oHead   = false;function __construct(){        $this->getDatabase();        $this->getHead();    }function getConfig($cKey = false){        if (!$cKey) { return false; }        return $this->fConfig[$cKey];    }function getHead() {        $this->oHead = new Head();    }}?><?phpclass Head extends Hammer{    private $aConfig = false;    function __construct() {        $this->aConfig = parent::getConfig('site');        $this->cTitle = $this->aConfig['title'];    }    function getTitle() {        return $this->aConfig['title'];    }}?>