Пример #1
0
 public function __construct(Yada_Meta $meta, Yada_Model $model, $data)
 {
     $this->_meta = $meta;
     $this->_model = $model;
     $this->_data = $data;
     $meta->meta($model)->collect = $this;
     $this->export($model);
 }
Пример #2
0
 /**
  * Get the meta data object
  * @return ArrayObject
  */
 protected function _meta($model = NULL)
 {
     $model = isset($model) ? $model : $this->_model;
     return $this->_meta->meta($model);
 }