示例#1
0
 public function test()
 {
     return parent::hello() . ' ' . parent::world();
 }
示例#2
0
文件: Column.php 项目: ketheriel/ETVA
 /**
  * Adds a new inheritance definition to the inheritance list and set the
  * parent column of the inheritance to the current column
  * @param			 mixed $inhdata Inheritance or XML data.
  */
 public function addInheritance($inhdata)
 {
     if ($inhdata instanceof Inheritance) {
         $inh = $inhdata;
         $inh->setColumn($this);
         if ($this->inheritanceList === null) {
             $this->inheritanceList = array();
             $this->isEnumeratedClasses = true;
         }
         $this->inheritanceList[] = $inh;
         return $inh;
     } else {
         $inh = new Inheritance();
         $inh->loadFromXML($inhdata);
         return $this->addInheritance($inh);
     }
 }
示例#3
0
 public function __construct()
 {
     parent::__inherit(array(new ClassB(), new ClassC()));
 }