SetVirtualNode() public method

public SetVirtualNode ( $strName, QQSubQueryNode $objNode )
$objNode QQSubQueryNode
Ejemplo 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;
         }
     }
 }
Ejemplo n.º 2
0
 public function UpdateQueryBuilder(QQueryBuilder $objBuilder)
 {
     $objBuilder->SetVirtualNode($this->strAttributeName, $this->objNode);
     $objBuilder->AddSelectFunction(null, $this->objNode->GetColumnAlias($objBuilder), $this->strAttributeName);
 }