original_string: public function editCollectionItem($collection_id, $collection_item_id = null)
      {
          $this->setCollectionCollection($collection_id);
          $this->setCollectionCollectionItem($collection_item_id);
          $this->setTitleEditCollectionItem();
          $this->setBreadcrumbEditCollectionItem();
  
          $this->setData('collection', $this->data_collection);
          $this->setData('collection_item', $this->data_collection_item);
          $this->setData('handler', $this->getHandlerCollectionItem());
          $this->setData('weight', $this->collection_item->getNextWeight($collection_id));
  
          $this->submitEditCollectionItem();
  
          $this->setJsEditCollectionItem();
          $this->outputEditCollectionItem();
      }
code: public function editCollectionItem($collection_id, $collection_item_id = null)
      {
          $this->setCollectionCollection($collection_id);
          $this->setCollectionCollectionItem($collection_item_id);
          $this->setTitleEditCollectionItem();
          $this->setBreadcrumbEditCollectionItem();
  
          $this->setData('collection', $this->data_collection);
          $this->setData('collection_item', $this->data_collection_item);
          $this->setData('handler', $this->getHandlerCollectionItem());
          $this->setData('weight', $this->collection_item->getNextWeight($collection_id));
  
          $this->submitEditCollectionItem();
  
          $this->setJsEditCollectionItem();
          $this->outputEditCollectionItem();
      }
code_tokens: public function editCollectionItem ( $ collection_id , $ collection_item_id = null ) { $ this -> setCollectionCollection ( $ collection_id ) ; $ this -> setCollectionCollectionItem ( $ collection_item_id ) ; $ this -> setTitleEditCollectionItem ( ) ; $ this -> setBreadcrumbEditCollectionItem ( ) ; $ this -> setData ( 'collection' , $ this -> data_collection ) ; $ this -> setData ( 'collection_item' , $ this -> data_collection_item ) ; $ this -> setData ( 'handler' , $ this -> getHandlerCollectionItem ( ) ) ; $ this -> setData ( 'weight' , $ this -> collection_item -> getNextWeight ( $ collection_id ) ) ; $ this -> submitEditCollectionItem ( ) ; $ this -> setJsEditCollectionItem ( ) ; $ this -> outputEditCollectionItem ( ) ; }
docstring: Displays the edit collection item form
  @param integer $collection_id
  @param string|int|null $collection_item_id
docstring_tokens: Displays the edit collection item form