Zend/Gdata/Spreadsheets/ListEntry.php
public function removeCustom($index)
    {
        if (array_key_exists($index, $this->_custom)) {
            $element = $this->_custom[$index];
            // Remove element
            unset($this->_custom[$index]);
            // Re-index the array
            $this->_custom = array_values($this->_custom);
            // Be sure to delete form both arrays!
            $key = array_search($element, $this->_customByName);
            unset($this->_customByName[$key]);
        } else {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                'Element does not exist.');
        }
        return $this;
    }
public function removeCustom($index)
    {
        if (array_key_exists($index, $this->_custom)) {
            $element = $this->_custom[$index];
            // Remove element
            unset($this->_custom[$index]);
            // Re-index the array
            $this->_custom = array_values($this->_custom);
            // Be sure to delete form both arrays!
            $key = array_search($element, $this->_customByName);
            unset($this->_customByName[$key]);
        } else {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                'Element does not exist.');
        }
        return $this;
    }
public function removeCustom ( $ index ) { if ( array_key_exists ( $ index , $ this -> _custom ) ) { $ element = $ this -> _custom [ $ index ] ; // Remove element unset ( $ this -> _custom [ $ index ] ) ; // Re-index the array $ this -> _custom = array_values ( $ this -> _custom ) ; // Be sure to delete form both arrays! $ key = array_search ( $ element , $ this -> _customByName ) ; unset ( $ this -> _customByName [ $ key ] ) ; } else { require_once 'Zend/Gdata/App/InvalidArgumentException.php' ; throw new Zend_Gdata_App_InvalidArgumentException ( 'Element does not exist.' ) ; } return $ this ; }
Remove an individual row element from this list entry by index. This
will cause the array to be re-indexed.
@param int $index The index of the custom element to be deleted.
@return Zend_Gdata_Spreadsheets_ListEntry Provides a fluent interface.
@throws Zend_Gdata_App_InvalidArgumentException
Remove an individual row element from this list entry by index . This will cause the array to be re - indexed .