Exemplo n.º 1
0
 /**
  * get values for mapped parent
  * @return extrafs_value_collection
  */
 function get_field_values()
 {
     if (!isset($this->_extra_fs_values_collection)) {
         // fetch values for current parent *pid*
         $this->_extra_fs_values_collection = core::module('extrafs')->get_value_handle()->set_where('pid = %d AND ctype_id = %d', $this->_parent->get_id(), $this->_parent->get_ctype_id())->load();
     }
     foreach ($this as $v) {
         $v->get_field_value();
     }
     return $this->_extra_fs_values_collection;
 }