Lines Matching refs:id
44 'id' => 'string',
119 * @param string $id - A page id.
126 public function forWikilink($id, $content = null, $preTitle = '', $classes = '', $textClasses = '') {
128 $id = resolve_id(getNS($ID), $id, false);
130 $meta = self::read_meta_fast($id);
133 $link = $this->localRenderer->internallink($id, $content ?: $title, null, true);
135 if (page_exists(preg_replace('/\#.*$/', '', $id))) {
146 * Is this id excluded from the plugin?
148 * @param string $id
151 public function isExcluded($id) {
154 return (!empty($inclusions) && !preg_match("/$inclusions/", $id)) ||
155 (!empty($exclusions) && preg_match("/$exclusions/", $id));
175 * @param string $id
178 static function read_meta_fast($id) {
182 $id = $resolver->resolveId(preg_replace('/\#.*$/', '', $id), null, true);
185 if (isset(self::$metaCache[$id])) {
186 return self::$metaCache[$id];
190 'title' => p_get_metadata(cleanID($id), 'title'),
191 'abstract' => p_get_metadata(cleanID($id), 'plugin_description keywords') ?: p_get_metadata(cleanID($id), 'description abstract')
202 self::$metaCache[$id] = $results;