Lines Matching defs:id
71 * @param string $id
74 public function getLangPart($id)
76 [$lng] = $this->getTransParts($id);
82 * the id part.
84 * @param string $id
87 public function getTransParts($id)
90 if (preg_match($rx, $id, $match)) {
93 return ['', $id];
157 * @param string $id
161 public function istranslatable($id, $checkact = true)
166 if ($this->translationNs && strpos($id, (string) $this->translationNs) !== 0) return false;
168 if ($skiptrans && preg_match('/' . $skiptrans . '/ui', ':' . $id)) return false;
169 $meta = p_get_metadata($id);
201 * @param $id
204 public function getAvailableTranslations($id)
208 [$lc, $idpart] = $this->getTransParts($id);
232 if (!$this->istranslatable($INFO['id'])) return '';
235 [, $idpart] = $this->getTransParts($INFO['id']);
250 [$type, $text, $attr] = $this->prepareLanguageSelectorItem($t, $idpart, $INFO['id']);
355 * @param string $id
357 * @return false|string false id no diff can be found, link otherwise
359 public function getOldDiffLink($id, $lastmod)
363 $changelog = new PageChangeLog($id);
371 if ($orev && !page_exists($id, $orev)) {
374 $id = cleanID($id);
375 return wl($id, ['do' => 'diff', 'rev' => $orev]);