예제 #1
0
 public function indexAction()
 {
     if (Zend_Registry::get('SiteConfig')->disable_updates == 1) {
         return;
     }
     Modules_Service_Model_Update::getInstance()->update(false, $this->getParam('skip_zetta'));
 }
예제 #2
0
 /**
  * Синглтон
  *
  * @return Modules_Service_Model_Update
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #3
0
 public function updateAction()
 {
     if ($this->getRequest()->isPost()) {
         Modules_Service_Model_Update::getInstance()->update();
     }
 }