Prado\Data\DataGateway\TSqlCriteria::getSelect PHP Method

getSelect() public method

Gets the field list to be placed after the SELECT in the SQL. Default to '*'
Since: 3.1.7
public getSelect ( ) : mixed
return mixed
    public function getSelect()
    {
        return $this->_select;
    }

Usage Example

 /**
  * Build the find command from the criteria. Limit, Offset and Ordering are applied if applicable.
  * @param TSqlCriteria $criteria
  * @return TDbCommand.
  */
 protected function getFindCommand($criteria)
 {
     if ($criteria === null) {
         return $this->getBuilder()->createFindCommand();
     }
     $where = $criteria->getCondition();
     $parameters = $criteria->getParameters()->toArray();
     $ordering = $criteria->getOrdersBy();
     $limit = $criteria->getLimit();
     $offset = $criteria->getOffset();
     $select = $criteria->getSelect();
     $command = $this->getBuilder()->createFindCommand($where, $parameters, $ordering, $limit, $offset, $select);
     $this->onCreateCommand($command, $criteria);
     return $command;
 }