Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see t41\ObjectModel.ObjectModelAbstract::reduce()
  */
 public function reduce(array $params = array(), $cache = true)
 {
     /* keep object in registry (force refresh) */
     $uuid = $cache ? Core\Registry::set($this, null, true) : null;
     // build an array with remotely callable methods
     $methods = array();
     //		foreach (get_class_methods($this) as $method) {
     //			if (substr($method,0,1) == '_') continue;
     //$methods[] = $method;
     //		}
     $array = $uuid ? array('uuid' => $uuid) : array();
     $array['value'] = $this->__toString();
     return array_merge($this->_dataObject->reduce($params, false), $array);
 }