protected function submitEditCollection()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCollection();
        } else if ($this->isPosted('save') && $this->validateEditCollection()) {
            if (isset($this->data_collection['collection_id'])) {
                $this->updateCollection();
            } else {
                $this->addCollection();
            }
        }
    }
protected function submitEditCollection()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCollection();
        } else if ($this->isPosted('save') && $this->validateEditCollection()) {
            if (isset($this->data_collection['collection_id'])) {
                $this->updateCollection();
            } else {
                $this->addCollection();
            }
        }
    }
protected function submitEditCollection ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deleteCollection ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditCollection ( ) ) { if ( isset ( $ this -> data_collection [ 'collection_id' ] ) ) { $ this -> updateCollection ( ) ; } else { $ this -> addCollection ( ) ; } } }
Saves an array of submitted collection data
Saves an array of submitted collection data