protected static function putCachedObject($sCacheFile, $oObject) { try { // we may have at most 2 subfolders to create: <pagegroupid>/<pageid> AnwUtils::makeSureDirExists($sCacheFile, 2); AnwUtils::putFileSerializedObject($sCacheFile, $oObject); } catch (AnwUnexpectedException $e) { //silently report error AnwDebug::reportError($e); } }
function run() { $sDirToDelete = $this->getActionInstall()->getMyComponentPathDefault(); $sLinkHome = AnwUtils::link(AnwComponent::globalCfgHomePage()); $sLinkEditConfig = AnwUtils::alink('editconfig'); $sWebsite = '<a href="' . ANWIKI_WEBSITE . '" target="_blank">' . ANWIKI_WEBSITE . '</a>'; $this->out .= $this->tpl()->showFinished($sDirToDelete, $sLinkHome, $sLinkEditConfig, $sWebsite); //lock install $asInstallInfo = array('install_timehuman' => date("Y-m-d H:i:s"), 'install_time' => time(), 'install_version_id' => ANWIKI_VERSION_ID, 'install_version_name' => ANWIKI_VERSION_NAME); AnwUtils::putFileSerializedObject(ANWIKI_INSTALL_LOCK, $asInstallInfo); }
private function saveInstallStatus($asInstallStatus) { AnwUtils::putFileSerializedObject(ANWIKI_INSTALL_STATUS, $asInstallStatus); $this->asInstallStatus = null; }