protected function wizardAddCollectionItem()
    {
        $this->validatePrompt('collection_id', $this->text('Collection ID'), 'collection_item');
        $this->validatePrompt('entity_id', $this->text('Entity ID'), 'collection_item');
        $this->validatePrompt('weight', $this->text('Weight'), 'collection_item', 0);
        $this->validatePrompt('status', $this->text('Status'), 'collection_item', 0);
        $this->validatePrompt('data', $this->text('Data'), 'collection_item');

        $this->validateComponent('collection_item');
        $this->addCollectionItem();
    }
protected function wizardAddCollectionItem()
    {
        $this->validatePrompt('collection_id', $this->text('Collection ID'), 'collection_item');
        $this->validatePrompt('entity_id', $this->text('Entity ID'), 'collection_item');
        $this->validatePrompt('weight', $this->text('Weight'), 'collection_item', 0);
        $this->validatePrompt('status', $this->text('Status'), 'collection_item', 0);
        $this->validatePrompt('data', $this->text('Data'), 'collection_item');

        $this->validateComponent('collection_item');
        $this->addCollectionItem();
    }
protected function wizardAddCollectionItem ( ) { $ this -> validatePrompt ( 'collection_id' , $ this -> text ( 'Collection ID' ) , 'collection_item' ) ; $ this -> validatePrompt ( 'entity_id' , $ this -> text ( 'Entity ID' ) , 'collection_item' ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'collection_item' , 0 ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'collection_item' , 0 ) ; $ this -> validatePrompt ( 'data' , $ this -> text ( 'Data' ) , 'collection_item' ) ; $ this -> validateComponent ( 'collection_item' ) ; $ this -> addCollectionItem ( ) ; }
Add a collection item step by step
Add a collection item step by step