protected function canDeleteCategory()
    {
        return isset($this->data_category['category_id'])
            && $this->category->canDelete($this->data_category['category_id'])
            && $this->access('category_delete');
    }
protected function canDeleteCategory()
    {
        return isset($this->data_category['category_id'])
            && $this->category->canDelete($this->data_category['category_id'])
            && $this->access('category_delete');
    }
protected function canDeleteCategory ( ) { return isset ( $ this -> data_category [ 'category_id' ] ) && $ this -> category -> canDelete ( $ this -> data_category [ 'category_id' ] ) && $ this -> access ( 'category_delete' ) ; }
Whether the category can be deleted
@return boolean
Whether the category can be deleted