Zend_Db_Table_Abstract::_where PHP Method

_where() protected method

Generate WHERE clause from user-supplied string or array
protected _where ( Zend_Db_Table_Select $select, string | array $where ) : Zend_Db_Table_Select
$select Zend_Db_Table_Select
$where string | array OPTIONAL An SQL WHERE clause.
return Zend_Db_Table_Select
    protected function _where(Zend_Db_Table_Select $select, $where)
    {
        $where = (array) $where;
        foreach ($where as $key => $val) {
            // is $key an int?
            if (is_int($key)) {
                // $val is the full condition
                $select->where($val);
            } else {
                // $key is the condition with placeholder,
                // and $val is quoted into the condition
                $select->where($key, $val);
            }
        }
        return $select;
    }