Lines Matching refs:tree
213 * Constructs a query from the give tree.
215 * @param root array the tree to transform
243 $tree = null;
245 $tree =& $root;
247 $tree =& $where[0];
255 list($group, $scope) = $this->transformGroup($tree, $typemap);
348 * @param root array the tree to transform
688 function getFields(&$tree, &$typemap) {
692 $fieldsGroups = $this->extractGroups($tree, 'fields');
779 * Constructs a tagged tree from the given list of lines.
781 * @return a tagged tree
879 * Extract all occurences of tagged groups from the given tree.
883 * @param root array the tree to operate on
890 foreach($root['cs'] as $i=>&$tree) {
891 if(!$this->isGroup($tree)) continue;
892 if($tree['tag'] == $tag || (($tag=='' || $tag==null) && $tree['tag'] == null) ) {
893 $result[] =& $tree;
906 * Extracts all text elements from the given tree.
910 * @param root array the tree to operate on
916 foreach($root['cs'] as $i=>&$tree) {
917 if(!$this->isText($tree)) continue;
918 $result[] =& $tree;
986 foreach ($trees as $tree) {
987 $text = $this->extractText($tree);
992 $this->_setPropertyValue($properties, $tree['tag'], $lineNode, $variable, !empty($multi), $value, $propertyValues);
994 $this->emitError($lineNode, 'error_property_weirdgroupline', hsc($tree['tag']), hsc($line));
998 foreach ($tree['cs'] as $group) {