public function getPartByIndex($index)
    {
        if (!isset($this->_parts[$index])) {
            return null;
        }

        $part = $this->_parts[$index];
        $part->parent = $this;

        return $part;
    }
public function getPartByIndex($index)
    {
        if (!isset($this->_parts[$index])) {
            return null;
        }

        $part = $this->_parts[$index];
        $part->parent = $this;

        return $part;
    }
public function getPartByIndex ( $ index ) { if ( ! isset ( $ this -> _parts [ $ index ] ) ) { return null ; } $ part = $ this -> _parts [ $ index ] ; $ part -> parent = $ this ; return $ part ; }
Returns a subpart by index.

@return Horde_Mime_Part  Part, or null if not found.
Returns a subpart by index .