SetVirtualNode() public method

public SetVirtualNode ( $strName, QQSubQueryNode $objNode )
$objNode QQSubQueryNode
Esempio n. 1
0
 public function GetColumnAlias(QQueryBuilder $objBuilder, $blnExpandSelection = false, QQCondition $objJoinCondition = null)
 {
     if ($this->objSubQueryDefinition) {
         $objBuilder->SetVirtualNode($this->strName, $this->objSubQueryDefinition);
         return $this->objSubQueryDefinition->GetColumnAlias($objBuilder);
     } else {
         try {
             return $objBuilder->GetVirtualNode($this->strName)->GetColumnAlias($objBuilder);
         } catch (QCallerException $objExc) {
             $objExc->IncrementOffset();
             $objExc->IncrementOffset();
             throw $objExc;
         }
     }
 }
 public function UpdateQueryBuilder(QQueryBuilder $objBuilder)
 {
     $objBuilder->SetVirtualNode($this->strAttributeName, $this->objNode);
     $objBuilder->AddSelectFunction(null, $this->objNode->GetColumnAlias($objBuilder), $this->strAttributeName);
 }