Example #1
0
File: Dao.php Project: pixlr/SZES
 protected function entityFromArray(array $values)
 {
     $object = false;
     if (!empty($values)) {
         $class = '\\Model\\' . \Util\Text::classNameOnly(get_called_class());
         $object = new $class();
         $object->fromArray($values);
     }
     return $object;
 }
Example #2
0
 public function offsetUnset($dao_name)
 {
     unset($this->container[\Util\Text::classNameOnly($dao_name)]);
 }