$namespace) { $namespace = rtrim($namespace, ':') . ':'; $sub = substr($id, 0, strlen($namespace)); if ($namespace == $sub) { return true; } } } return false; } public static function /* bool */ isOrphanedPage(/* string */ $id, array $item, array $ignoredPages = null, array $ignoreNamespaces = null) { return $item['exists'] && $item['count'] == 0 && !Logic::isPageIgnored($id, $ignoredPages, $ignoreNamespaces); } public static function /* bool */ isWantedPage(/* string */ $id, array $item, array $ignoredPages = null, array $ignoreNamespaces = null) { return !$item['exists'] && $item['count'] > 0 && !Logic::isPageIgnored($id, $ignoredPages, $ignoreNamespaces); } public static function /* bool */ isLinkedPage(/* string */ $id, array $item, array $ignoredPages = null, array $ignoreNamespaces = null) { return $item['exists'] && $item['count'] > 0 && !Logic::isPageIgnored($id, $ignoredPages, $ignoreNamespaces); } } ?>