コード例 #1
0
 public function &getObj()
 {
     if (!$this->myObj) {
         $obj =& parent::getObj();
         $obj['variable'] = $this->getAttribute('variable');
         $obj['savevalue'] = $this->save;
     }
     return $this->myObj;
 }
 public function getNode($xml)
 {
     $node = parent::getNode($xml);
     if ($this->screen) {
         $node->appendChild($this->screen->getNode($xml, false));
     }
     return $node;
 }
コード例 #3
0
 public function __construct($height = 1, $color = '0,0,0')
 {
     $this->item = parent::__construct('hr');
     $this->setHeight($height);
     $this->setColor($color);
 }