getPart example


        return $this->_iterationPos;
    }

    /** * implements Iterator::current() * * @return Zend_Mail_Part current part */
    public function current()
    {
        return $this->getPart($this->_iterationPos);
    }

    /** * implements Iterator::rewind() * * @return null */
    public function rewind()
    {
        $this->countParts();
        $this->_iterationPos = 1;
    }
if ($where !== null) {
                $this->_where($select$where);
            }

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

            $select->limit(1, ((is_numeric($offset)) ? (int) $offset : null));

        } else {
            $select = $where->limit(1, $where->getPart(Zend_Db_Select::LIMIT_OFFSET));
        }

        $rows = $this->_fetch($select);

        if (count($rows) == 0) {
            return null;
        }

        $data = array(
            'table'   => $this,
            'data'     => $rows[0],
            
return $this;
    }

    /** * Tests query to determine if expressions or aliases columns exist. * * @return boolean */
    public function isReadOnly()
    {
        $readOnly = false;
        $fields   = $this->getPart(Zend_Db_Table_Select::COLUMNS);
        $cols     = $this->_info[Zend_Db_Table_Abstract::COLS];

        if (!count($fields)) {
            return $readOnly;
        }

        foreach ($fields as $columnEntry) {
            $column = $columnEntry[1];
            $alias = $columnEntry[2];

            if ($alias !== null) {
                
Home | Imprint | This part of the site doesn't use cookies.