protected function submitEditCollectionItem()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCollectionItem();
        } else if ($this->isPosted('save') && $this->validateEditCollectionItem()) {
            if (isset($this->data_collection_item['collection_item_id'])) {
                $this->updateCollectionItem();
            } else {
                $this->addCollectionItem();
            }
        }
    }
protected function submitEditCollectionItem()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCollectionItem();
        } else if ($this->isPosted('save') && $this->validateEditCollectionItem()) {
            if (isset($this->data_collection_item['collection_item_id'])) {
                $this->updateCollectionItem();
            } else {
                $this->addCollectionItem();
            }
        }
    }
protected function submitEditCollectionItem ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCollectionItem ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCollectionItem ( ) ) { if ( isset ( $ this -> data_collection_item [ 'collection_item_id' ] ) ) { $ this -> updateCollectionItem ( ) ; } else { $ this -> addCollectionItem ( ) ; } } }
Saves a submitted collection item
Saves a submitted collection item