NilPortugues\Sql\QueryBuilder\Manipulation\Select::getAllWheres PHP Метод

getAllWheres() публичный Метод

Returns all the Where conditions to the BuilderInterface class in order to write the SQL WHERE statement.
public getAllWheres ( ) : array
Результат array
    public function getAllWheres()
    {
        return $this->getAllOperation($this->where, 'getAllWheres');
    }

Usage Example

 /**
  * @param Select $select
  * @param array  $parts
  *
  * @return $this
  */
 public function writeSelectWhere(Select $select, array &$parts)
 {
     $str = '';
     $wheres = $this->writeSelectWheres($select->getAllWheres());
     $wheres = \array_filter($wheres);
     if (\count($wheres) > 0) {
         $str = 'WHERE ';
         $separator = ' ' . $this->writer->writeConjunction($select->getWhereOperator()) . ' ';
         $str .= \implode($separator, $wheres);
     }
     $parts = \array_merge($parts, [$str]);
     return $this;
 }
All Usage Examples Of NilPortugues\Sql\QueryBuilder\Manipulation\Select::getAllWheres