src/Charcoal/Source/DatabaseSource.php
public function sqlFilters()
    {
        if (!$this->hasFilters()) {
            return '';
        }

        $criteria = $this->createFilter([
            'filters' => $this->filters()
        ]);

        $sql = $criteria->sql();
        if (strlen($sql) > 0) {
            $sql = ' WHERE '.$sql;
        }

        return $sql;
    }
public function sqlFilters()
    {
        if (!$this->hasFilters()) {
            return '';
        }

        $criteria = $this->createFilter([
            'filters' => $this->filters()
        ]);

        $sql = $criteria->sql();
        if (strlen($sql) > 0) {
            $sql = ' WHERE '.$sql;
        }

        return $sql;
    }
public function sqlFilters ( ) { if ( ! $ this -> hasFilters ( ) ) { return '' ; } $ criteria = $ this -> createFilter ( [ 'filters' => $ this -> filters ( ) ] ) ; $ sql = $ criteria -> sql ( ) ; if ( strlen ( $ sql ) > 0 ) { $ sql = ' WHERE ' . $ sql ; } return $ sql ; }
Compile the WHERE clause.

@todo   [2016-02-19] Use bindings for filters value
@return string
Compile the WHERE clause .