private function fill() { foreach (self::$types as $type) { $res = Dbaccess::getInstance()->getAllObjects($type); if ($res) { self::set($type, $res); } } }
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 в случае неудачи } }
protected function __construct() { $this->_fooldb = Dbaccess::getInstance(); $this->readRoutes(); }