Lines Matching refs:id
38 * Delete the all tasks from a given page id
40 * @param string $id page id
42 public function cleanPageTasks($id)
47 $this->db->query('DELETE FROM tasks WHERE page = ?', $id);
48 $this->db->query('DELETE FROM task_assignees WHERE page = ?', $id);
91 * - id
129 if (isset($args['id'])) {
131 if (!is_array($args['id'])) {
132 $args['id'] = array($args['id']);
135 resolve_pageid(getNS($ID), $args['id'][0], $exists);
136 $where .= sprintf(' AND A.page = %s', $this->db->quote_string($args['id'][0]));
244 * @param string $page page id of the task
284 $task = $this->loadTasks(array('id' => $ID, 'md5' => $md5))[0];
390 * @param string $page page id
423 * Get information about the number of tasks on a specific id.
430 * @param string $id String Id of the wiki page - if no id is given the current page will be used.
434 public function getPageTaskCount($id = '')
436 if (!$id) {
438 $id = $ID;
440 if (auth_quickaclcheck($id) < AUTH_READ) {
444 $tasks = $this->loadTasks(array('id' => $id), $checkAccess = false);
473 * @param string $id page id
478 public function tpl_pageTasks($id = '', $return = false)
480 $count = $this->getPageTaskCount($id);