Esempio n. 1
0
 /**
  * @before _secure, _admin
  */
 public function approve()
 {
     $this->seo(array("title" => "Approve or Disapprove websites triggers", "keywords" => "admin", "description" => "admin", "view" => $this->getLayoutView()));
     $view = $this->getActionView();
     $limit = RequestMethods::get("limit", 10);
     $page = RequestMethods::get("page", 1);
     $live = RequestMethods::get("live", 0);
     $triggers = \Trigger::all(array("live = ?" => $live), array("*"), "created", "desc", $limit, $page);
     $count = Trigger::count(array("live = ?" => $live));
     $view->set(array("live" => $live, "count" => (int) $count, "limit" => $limit, "page" => $page, "triggers" => $triggers, "ts" => $this->triggers));
 }