Lines Matching refs:var
96 foreach ($this->required as $var => $type) {
97 $params[$var] = TRUE;
98 $types[$var] = $type;
100 foreach ($this->optional as $var => $type) {
101 if (isset($vars[$var])) throw new DokuAJAXColidingParamException($var);
102 $params[$var] = FALSE;
103 $types[$var] = $type;
114 foreach ($params as $var => $req) {
115 if ($INPUT->has($var)) {
116 $value = $INPUT->param($var);
119 if ($types[$var] == 'array') {
128 if ($type !== $types[$var]) {
129 $this->error(400, $var . ' is expected to be ' . $types[$var] . ' : '.$type);
131 $vars[$var] = $value;