Esempio n. 1
0
 /**
  * Set object properties
  *
  * @param	array		data
  * @return	void
  **/
 public function setPropsArray($data)
 {
     foreach ($this->_mapper->fields('report') as $k => $v) {
         $field = !is_numeric($k) ? $k : $v;
         if (isset($data[$field]) && !in_array($field, $this->_mapper->_dont_init_fields)) {
             $this->{$field} = $data[$field];
         }
     }
 }
Esempio n. 2
0
 /**
  * @see	RM_Report_Mapper::fields()
  **/
 public function fields($name)
 {
     return $this->_mapper->fields($name);
 }