Lines Matching refs:a
22 * @param AbstractNode $a
26 public static function sortById(AbstractNode $a, AbstractNode $b): int argument
29 $pathA = explode(':', $a->getId());
45 * @param AbstractNode $a
49 public static function sortByNsFirstThenId(AbstractNode $a, AbstractNode $b): int argument
51 $res = self::sortByNsFirst($a, $b);
52 if ($res === 0) $res = self::sortById($a, $b);
59 * @param AbstractNode $a
63 public static function sortByTitle(AbstractNode $a, AbstractNode $b): int argument
65 return Sort::strcmp($a->getTitle(), $b->getTitle());
71 * @param AbstractNode $a
75 public static function sortByNsFirstThenTitle(AbstractNode $a, AbstractNode $b): int argument
77 $res = self::sortByNsFirst($a, $b);
78 if ($res === 0) $res = self::sortByTitle($a, $b);
85 * @param AbstractNode $a
89 protected static function sortByNsFirst(AbstractNode $a, AbstractNode $b): int argument
91 $isAaNs = ($a instanceof WikiNamespace);