private function fill()
 {
     foreach (self::$types as $type) {
         $res = Dbaccess::getInstance()->getAllObjects($type);
         if ($res) {
             self::set($type, $res);
         }
     }
 }
Exemple #2
0
 private function loadObject($id)
 {
     $res = Dbaccess::getInstance()->getOneObject($id);
     // res - массив с ключами name, dt_create, content
     // или False, если id не существует
     if ($res) {
         return $this->formatString($res);
     } else {
         return $res;
         // вернуть false в случае неудачи
     }
 }
Exemple #3
0
 protected function __construct()
 {
     $this->_fooldb = Dbaccess::getInstance();
     $this->readRoutes();
 }