Lines Matching defs:id

34      * For each row an array is added which must contain at least the key 'id', can further contain as well :
50 * @var bool enables sorting. If no sortkey was given, 'id' is used.
67 private $defaultSortKey = 'id';
178 'params' => ["page attributes, 'id' required, others optional" => 'array'],
194 * - td($id, $col=null, &$class=null) or td($id)
417 * (required) Add page row to the list, call for every row. In the $page array is 'id' required, other entries are optional.
420 * 'id' => (required) string page id
421 * 'title' => string First headline, otherwise page id; exception: if titleimage is used this is used for the image title&alt attribute
422 * 'titleimage' => string media id
428 * 'exists' => bool page_exists($id)
429 * 'perm' => int auth_quickaclcheck($id)
433 * 'file' => string wikiFN($id)
434 * 'section' => string id of section, added as #ancher to page url
436 * @return bool, false if no id given
440 $id = $page['id'];
441 if (!$id) return false;
449 $this->getPageData($id);
465 $sortKey = $this->getSortKey($id);
518 $id = $this->page['id'];
522 if (page_exists($id)) {
529 $this->page['title'] = str_replace('_', ' ', noNS($id));
533 $content = '<a href="' . wl($id) . '" class="' . $class . '" title="' . $id . '">' . $title . '</a>';
559 $this->printPluginCell('pageimage', 'image', $id);
561 $this->printPageCell($id);
573 $this->printDiffCell($id);
581 $this->printPluginCell($plugin, $col, $id);
634 * @param string $id page id displayed in this table row
637 protected function printPageCell($id)
658 $content = '<a href="' . wl($id) . $section . '" class="' . $class . '" title="' . $id . '" data-wiki-id="' . $id . '">' . $title . '</a>';
726 * @param string $id page id displayed in this table row
729 protected function printDiffCell($id)
734 $this->page['file'] = wikiFN($id);
742 $url = wl($id, $url_params) . (!empty($this->page['section']) ? '#' . $this->page['section'] : '');
763 * @param string $id page id displayed in this table row
766 protected function printPluginCell($plugin, $col, $id)
769 $this->page[$col] = $this->$plugin->td($id, $col);
803 if (empty($this->page['exists']) || empty($this->page['id'])) {
807 $this->meta = p_get_metadata($this->page['id'], '', METADATA_RENDER_USING_CACHE);
820 * @param string $id page id
822 private function getPageData($id)
827 $this->page['file'] = wikiFN($id);
839 $this->page['title'] = str_replace('_', ' ', noNSorNS($id));
935 * @param string $id page id
938 private function getSortKey($id)
948 $this->getPageData($id);
950 $this->page['pagename'] = noNS($id);
955 $pos = strrpos($id, ':');
957 $sortkey = "\0" . $id;
959 $sortkey = substr_replace($id, "\0\0", $pos, 1);
979 $this->page[$col] = $this->$plugin->td($id, $col);