예제 #1
0
파일: core.php 프로젝트: jerfowler/yada
 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
파일: core.php 프로젝트: jerfowler/yada
 /**
  * Get the meta data object
  * @return ArrayObject
  */
 protected function _meta($model = NULL)
 {
     $model = isset($model) ? $model : $this->_model;
     return $this->_meta->meta($model);
 }