_where example


    public function where($cond$value = null, $type = null)
    {
        $this->_parts[self::WHERE][] = $this->_where($cond$value$type, true);

        return $this;
    }

    /** * Adds a WHERE condition to the query by OR. * * Otherwise identical to where(). * * @param string $cond the WHERE condition * @param mixed $value OPTIONAL The value to quote into the condition * @param int $type OPTIONAL The type of the given value * * @return Zend_Db_Select this Zend_Db_Select object * * @see where() */

    public function fetchAll($where = null, $order = null, $count = null, $offset = null)
    {
        if (!($where instanceof Zend_Db_Table_Select)) {
            $select = $this->select();

            if ($where !== null) {
                $this->_where($select$where);
            }

            if ($order !== null) {
                $this->_order($select$order);
            }

            if ($count !== null || $offset !== null) {
                $select->limit($count$offset);
            }

        } else {
            
Home | Imprint | This part of the site doesn't use cookies.