Example #1
0
 /**
  * Adds a new variable to the query and sets result form to 'DESCRIBE'.
  *
  * @return void
  */
 protected function parseDescribe()
 {
     while (strtolower(current($this->tokens)) != 'from' & strtolower(current($this->tokens)) != 'where') {
         $this->_fastForward();
         if ($this->varCheck(current($this->tokens)) | $this->iriCheck(current($this->tokens))) {
             $this->query->addResultVar(current($this->tokens));
             if (!$this->query->getResultForm()) {
                 $this->query->setResultForm('describe');
             }
         }
         if (!current($this->tokens)) {
             break;
         }
     }
     prev($this->tokens);
 }