Exemplo n.º 1
0
 /** @param array $assoc
  * @return Incube_Array */
 public static function from_array(array $assoc)
 {
     $object = new DataObject();
     foreach ($assoc as $key => $value) {
         $key = trim($key);
         $value = is_array($value) ? self::from_array($value) : $value;
         $object->set($key, $value);
     }
     return $object;
 }
Exemplo n.º 2
0
 public function set_resources(array $resources)
 {
     $this->_resources = DataObject::from_array($resources);
     return $this;
 }
Exemplo n.º 3
0
 /** @param string $key 
  * @return string */
 public function __get($key)
 {
     return $this->_data->get($key);
 }