コード例 #1
0
ファイル: Dao.php プロジェクト: 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;
 }
コード例 #2
0
ファイル: DaoLoader.php プロジェクト: pixlr/SZES
 public function offsetUnset($dao_name)
 {
     unset($this->container[\Util\Text::classNameOnly($dao_name)]);
 }