public function jobProceduralAction() { $status = array("success" => true); if ($this->_getParam("type") == "files") { Pimcore_Update::installData($this->_getParam("revision")); } else { if ($this->_getParam("type") == "clearcache") { Pimcore_Model_Cache::clearAll(); } else { if ($this->_getParam("type") == "preupdate") { $status = Pimcore_Update::executeScript($this->_getParam("revision"), "preupdate"); } else { if ($this->_getParam("type") == "postupdate") { $status = Pimcore_Update::executeScript($this->_getParam("revision"), "postupdate"); } else { if ($this->_getParam("type") == "cleanup") { Pimcore_Update::cleanup(); } else { if ($this->_getParam("type") == "languages") { Pimcore_Update::downloadLanguage(); } } } } } } $this->_helper->json($status); }