Lines Matching defs:context
40 * @param null|array &$context (reference) argument where processed data can be stored
45 public static function groupConcatStep(&$context, $rownumber, $string, $separator = ',')
47 if (is_null($context)) {
48 $context = [
54 $context['data'][] = $string;
55 return $context;
63 * @param null|array &$context (reference) data as collected in step callback
67 public static function groupConcatFinalize(&$context, $rownumber)
69 if (!is_array($context)) {
72 $context['data'] = array_unique($context['data']);
73 if (empty($context['data'][0])) {
76 return implode($context['sep'], $context['data']);
146 * @param string $context The page ID (not namespace!) to resolve the page with
149 public static function resolvePage($page, $context)
152 if (is_null($context)) return cleanID($page);
154 $ns = getNS($context);