Zend_Db_Table_Abstract::_where PHP 메소드

_where() 보호된 메소드

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.
리턴 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;
    }