Lines Matching defs:result

68             $result = array();
72 $match = $this->preprocess($match, $state, $pos, $handler, $result, $typemap);
80 $header = $this->handleHeader($header, $result, $typemap);
84 $result['fields'] = $this->helper->parseFieldsShort($header, $typemap);
86 $result['fields'] = [];
95 if(count($result['fields']) && count($longFields)) {
100 if(count($result['fields']) == 0) {
101 $result['fields'] = $longFields;
105 if(count($result['fields']) == 0) {
111 foreach($result['fields'] as $f) $projection[] = $f['variable'];
115 $this->handleBody($tree, $result, $typemap);
118 $this->handleUI($tree, $result, $typemap);
121 list($result['query'], $variables) = $this->helper->constructQuery($tree, $typemap, $projection);
124 $footer = $this->handleFooter($footer, $result, $typemap, $variable);
127 foreach($result['fields'] as $i=>$f) {
135 $result['fields'][$i] = array_merge($result['fields'][$i],$typemap[$var]);
138 $result['fields'][$i]['type'] = $type;
139 $result['fields'][$i]['hint'] = $hint;
144 return $result;
154 function handleUI(&$tree, &$result, &$typemap) {
157 list($globalProperties, $groupProperties) = $this->getUISettings(count($result['fields']), count($trees));
163 foreach ($result['fields'] as $i => $f) {
174 foreach ($result['fields'] as $i => $f) {
192 $result['strata-ui'] = $this->helper->setProperties($globalProperties, $trees);
197 $result['strata-ui'][$p][$i] = $v[0];
210 * @param result array the result array passed to the render method
214 function preprocess($match, $state, $pos, &$handler, &$result, &$typemap) {
224 * @param result array the result array passed to the render method
228 function handleHeader($header, &$result, &$typemap) {
237 * @param result array the result array passed to the render method
240 function handleBody(&$tree, &$result, &$typemap) {
249 * @param result array the result array passed to the render method
254 function handleFooter($footer, &$result, &$typemap, &$variables) {