original_string: protected function deleteCollection()
      {
          $this->controlAccess('collection_delete');
  
          if ($this->collection->delete($this->data_collection['collection_id'])) {
              $this->redirect('admin/content/collection', $this->text('Collection has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Collection has not been deleted'), 'warning');
      }
code: protected function deleteCollection()
      {
          $this->controlAccess('collection_delete');
  
          if ($this->collection->delete($this->data_collection['collection_id'])) {
              $this->redirect('admin/content/collection', $this->text('Collection has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Collection has not been deleted'), 'warning');
      }
code_tokens: protected function deleteCollection ( ) { $ this -> controlAccess ( 'collection_delete' ) ; if ( $ this -> collection -> delete ( $ this -> data_collection [ 'collection_id' ] ) ) { $ this -> redirect ( 'admin/content/collection' , $ this -> text ( 'Collection has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a collection
docstring_tokens: Deletes a collection