示例#1
0
 public function toArray()
 {
     if ($this->_first === null) {
         return array();
     }
     return $this->_first->toArray();
 }
示例#2
0
 public function toArray()
 {
     $a = array();
     if ($this->_child !== null) {
         $a = $this->_child->toArray();
     }
     array_unshift($a, $this);
     return $a;
 }