Beispiel #1
0
 public function action_view()
 {
     //GET parameters
     $catalog_id = $this->request->param('id');
     $language_id = $this->request->param('helpid');
     //
     $gallery = Model_Links::getLinks($catalog_id, $language_id);
     //
     $view = $this->template->content = View::factory('gallery')->set('gallery', $gallery);
     $this->response->body($view);
 }
Beispiel #2
0
 protected function _execute(array $params)
 {
     Minion_CLI::write('Change status videos!');
     $video = Model_Links::updatePublish();
     //
     if ($video) {
         $message = "OK";
     } else {
         $message = "Error";
     }
     Log::instance()->add(Log::INFO, "Update videos task are {$message}");
     Log::instance()->write();
 }
 function __destruct()
 {
     gen_time('Controllers/Control_Links');
     parent::__destruct();
 }
Beispiel #4
0
 public function action_deleteSong()
 {
     $this->auto_render = FALSE;
     $link_id = $this->request->param('id');
     $result = Model_Links::deleteLink($link_id);
     if ($result) {
         print 'success';
     } else {
         print 'error';
     }
 }