original_string: protected function addCollection()
      {
          $this->controlAccess('collection_add');
  
          if ($this->collection->add($this->getSubmitted())) {
              $this->redirect('admin/content/collection', $this->text('Collection has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Collection has not been added'), 'danger');
      }
code: protected function addCollection()
      {
          $this->controlAccess('collection_add');
  
          if ($this->collection->add($this->getSubmitted())) {
              $this->redirect('admin/content/collection', $this->text('Collection has been added'), 'success');
          }
  
          $this->redirect('', $this->text('Collection has not been added'), 'danger');
      }
code_tokens: protected function addCollection ( ) { $ this -> controlAccess ( 'collection_add' ) ; if ( $ this -> collection -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/content/collection' , $ this -> text ( 'Collection has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection has not been added' ) , 'danger' ) ; }
docstring: Adds a new collection
docstring_tokens: Adds a new collection