public function putAction()
 {
     // Getting parameters
     $response = $this->_helper->response(true);
     $params = $this->_helper->param();
     // Convert data collection array if not
     $collection = $this->_helper->array()->isCollection($params['data']) ? $params['data'] : $this->_helper->array()->convertRecordtoCollection($params['data']);
     if (Kebab_Model_Application::update($collection)) {
         $response->addNotification(Kebab_Notification::NOTICE, 'Applications status updated');
     } else {
         $this->addNotification(Kebab_Notification::ERR, 'Applications status can\'t updated');
     }
     $response->getResponse();
 }
예제 #2
0
 /**
  * Desktop screen
  * 
  * @return void
  */
 public function desktopAction()
 {
     $this->view->stories = Kebab_Model_Story::getUserStoriesName();
     $this->view->applications = Kebab_Model_Application::getApplicationsByPermission();
 }