Ejemplo n.º 1
0
 public function toArray()
 {
     $ret = parent::toArray();
     foreach ($this->_model->getOwnColumns() as $c) {
         $ret[$c] = $this->{$c};
     }
     return $ret;
 }
Ejemplo n.º 2
0
 public function toArray()
 {
     $ret = parent::toArray();
     foreach ($this->_model->getOwnColumns() as $c) {
         $ret[$c] = $this->{$c};
     }
     if (!$this->_model->getOwnColumns()) {
         $ret = array_merge($this->_data, $ret);
     }
     return $ret;
 }
Ejemplo n.º 3
0
 public function toArray()
 {
     $ret = array_merge(parent::toArray(), $this->_row->toArray());
     return $ret;
 }
Ejemplo n.º 4
0
 public function toArray()
 {
     $ret = array();
     $mapping = $this->_model->getUnionColumnMapping();
     $columns = get_class_vars($mapping);
     foreach ($columns['columns'] as $c) {
         $name = $this->_sourceRow->getModel()->getColumnMapping($mapping, $c);
         if ($name) {
             $ret[$c] = $this->_sourceRow->{$name};
         } else {
             $ret[$c] = null;
         }
     }
     $ret = array_merge($ret, parent::toArray());
     $ret['id'] = $this->_id;
     return $ret;
 }