Lines Matching refs:text

186      * Constructs a literal with the given text.
189 return array('type'=>'literal', 'text'=>$val);
197 return array('type'=>'variable', 'text'=>$var);
271 if(preg_match("/^({$p->variable})\s*(?:\((asc|desc)(?:ending)?\))?$/S",utf8_trim($line['text']),$match)) {
279 $this->_fail(sprintf($this->getLang('error_query_sortline'), utf8_tohtml(hsc($line['text']))), $line);
298 if(preg_match("/({$p->variable})$/",utf8_trim($line['text']),$match)) {
306 $this->_fail(sprintf($this->getLang('error_query_groupline'), utf8_tohtml(hsc($line['text']))), $line);
322 if(preg_match("/^({$p->variable})$/",utf8_trim($line['text']),$match)) {
330 $this->_fail(sprintf($this->getLang('error_query_considerline'), utf8_tohtml(hsc($line['text']))), $line);
415 if($f['lhs']['type'] == 'variable' && !in_array($f['lhs']['text'], $scope)) {
416 $this->_fail(sprintf($this->getLang('error_query_filterscope'),utf8_tohtml(hsc($f['lhs']['text']))), $line);
418 if($f['rhs']['type'] == 'variable' && !in_array($f['rhs']['text'], $scope)) {
419 $this->_fail(sprintf($this->getLang('error_query_filterscope'),utf8_tohtml(hsc($f['rhs']['text']))), $line);
504 $line = trim($lineNode['text']);
513 $scope[] = $subject['text'];
514 $this->updateTypemap($typemap, $subject['text'], 'ref');
525 $scope[] = $predicate['text'];
526 $this->updateTypemap($typemap, $predicate['text'], 'text');
542 $scope[] = $object['text'];
549 $this->updateTypemap($typemap, $object['text'], $vtype->type, $vtype->hint);
550 $this->updateTypemap($typemap, $object['text'], $type->type, $type->hint);
585 $this->updateTypemap($typemap, $lhs['text'], $ltype->type, $ltype->hint);
589 $this->updateTypemap($typemap, $rhs['text'], $ltype->type, $lhint->hint);
594 $this->updateTypemap($typemap, $rhs['text'], $rtype->type, $rtype->hint);
598 $this->updateTypemap($typemap, $lhs['text'], $rtype->type, $rtype->hint);
615 $this->updateTypemap($typemap, $lhs['text'],$type,$hint);
618 if(!empty($typemap[$lhs['text']])) {
619 extract($typemap[$lhs['text']]);
630 // special case: the right hand side of the 'in' operator always normalizes with the 'text' type
633 $type = 'text';
652 $this->updateTypemap($typemap, $rhs['text'],$type,$hint);
655 if(!empty($typemap[$rhs['text']])) {
656 extract($typemap[$rhs['text']]);
719 $line = trim($lineNode['text']);
820 'text'=>$line,
906 * Extracts all text elements from the given tree.
907 * This method does not remove the text elements from subtrees
911 * @return array an array of text elements
933 return array_key_exists('text', $node);
987 $text = $this->extractText($tree);
988 foreach($text as $lineNode) {
989 $line = utf8_trim($lineNode['text']);