protected function addCollectionItem()
    {
        $this->controlAccess('collection_item_add');

        if ($this->collection_item->add($this->getSubmitted())) {
            $this->redirect('', $this->text('Collection item has been added'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been added'), 'warning');
    }
protected function addCollectionItem()
    {
        $this->controlAccess('collection_item_add');

        if ($this->collection_item->add($this->getSubmitted())) {
            $this->redirect('', $this->text('Collection item has been added'), 'success');
        }

        $this->redirect('', $this->text('Collection item has not been added'), 'warning');
    }
protected function addCollectionItem ( ) { $ this -> controlAccess ( 'collection_item_add' ) ; if ( $ this -> collection_item -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( '' , $ this -> text ( 'Collection item has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection item has not been added' ) , 'warning' ) ; }
Adds a new collection item
Adds a new collection item