Esempio n. 1
0
 /**
  * Return the object value for an object name (e.g. "user->name")
  *
  * @param String $name the object name and property (e.g. "user->name")
  * @return String the object value or NULL if it was not found
  */
 public static function object_value_for($name)
 {
     $value = NULL;
     if (strstr($name, Symbol::ARROW)) {
         list($object_name, $field) = explode(Symbol::ARROW, $name);
         $object = AppView::get($object_name);
         $value = h($object->{$field});
     }
     return $value;
 }