public function execute() { if (is_a($this->language, "language")) { parent::execute(); } else { $this->output->open_tag("tablemanager"); $this->output->add_tag("name", "Language"); $this->output->add_tag("result", "Multiple languages are not supported by this website.", array("url" => "admin", "seconds" => "5")); $this->output->close_tag(); } }
public function show_item_form($item) { if (valid_input($item["id"], VALIDATE_NUMBERS, VALIDATE_NONEMPTY)) { if (($users = $this->model->get_users($item["id"])) !== false) { $this->output->open_tag("users"); foreach ($users as $user) { $this->output->record($user, "user"); } $this->output->close_tag(); } } parent::show_item_form($item); }
public function execute() { if ($this->page->ajax_request) { $this->send_flags(); } else { if (count($this->model->module_flags) == 0) { $this->output->open_tag("tablemanager"); $this->output->add_tag("result", "No flags are available.", array("url" => "cms")); $this->output->close_tag(); } else { parent::execute(); } } }
protected function handle_submit() { parent::handle_submit(); $cache = new cache($this->db, "settings"); $cache->store("last_updated", time(), 365 * DAY); }