Пример #1
0
 function cache()
 {
     $this->_aParams = $this->_oDb->getPairs("SELECT `Name`, `VALUE` FROM `sys_options`", "Name", "VALUE");
     if (empty($this->_aParams)) {
         $this->_aParams = array();
         return false;
     }
     return $this->_oCache->setData($this->_sCacheFile, $this->_aParams);
 }