public function customWhere($custom, $logicalConnector = 'AND',
            $tablePlaceholder = ':TBL:') {
        if ($this->where && substr($this->where, strlen($this->where) - 1) != '(')
                $this->where .= ' ' . $logicalConnector;
        else if (!$this->where) $this->where = ' WHERE ';

        $this->where .= trim(str_replace($tablePlaceholder, $this->name, $custom));
        return $this;
    }
public function customWhere($custom, $logicalConnector = 'AND',
            $tablePlaceholder = ':TBL:') {
        if ($this->where && substr($this->where, strlen($this->where) - 1) != '(')
                $this->where .= ' ' . $logicalConnector;
        else if (!$this->where) $this->where = ' WHERE ';

        $this->where .= trim(str_replace($tablePlaceholder, $this->name, $custom));
        return $this;
    }
public function customWhere ( $ custom , $ logicalConnector = 'AND' , $ tablePlaceholder = ':TBL:' ) { if ( $ this -> where && substr ( $ this -> where , strlen ( $ this -> where ) - 1 ) != '(' ) $ this -> where .= ' ' . $ logicalConnector ; else if ( ! $ this -> where ) $ this -> where = ' WHERE ' ; $ this -> where .= trim ( str_replace ( $ tablePlaceholder , $ this -> name , $ custom ) ) ; return $ this ; }
Adds a custom query to the existing query. If no query exists, it serves as
the query.
@param string $custom
@param string $logicalConnector Logical operator to link the <i><b>custom where</b></i>
with the <i><b>regular where</b></i> if available
@param string $tablePlaceholder A string within the custom where to be
replaced with the table name. Useful when a table prefix might have been
used
@return Table
Adds a custom query to the existing query . If no query exists it serves as the query .