protected function wizardAddCollection()
    {
        $this->validatePrompt('title', $this->text('Title'), 'collection');
        $this->validateMenu('type', $this->text('Type'), 'collection', $this->collection->getTypes());
        $this->validatePrompt('store_id', $this->text('Store'), 'collection');
        $this->validatePrompt('description', $this->text('Description'), 'collection', '');
        $this->validatePrompt('status', $this->text('Status'), 'collection', 0);

        $this->validateComponent('collection');
        $this->addCollection();
    }
protected function wizardAddCollection()
    {
        $this->validatePrompt('title', $this->text('Title'), 'collection');
        $this->validateMenu('type', $this->text('Type'), 'collection', $this->collection->getTypes());
        $this->validatePrompt('store_id', $this->text('Store'), 'collection');
        $this->validatePrompt('description', $this->text('Description'), 'collection', '');
        $this->validatePrompt('status', $this->text('Status'), 'collection', 0);

        $this->validateComponent('collection');
        $this->addCollection();
    }
protected function wizardAddCollection ( ) { $ this -> validatePrompt ( 'title' , $ this -> text ( 'Title' ) , 'collection' ) ; $ this -> validateMenu ( 'type' , $ this -> text ( 'Type' ) , 'collection' , $ this -> collection -> getTypes ( ) ) ; $ this -> validatePrompt ( 'store_id' , $ this -> text ( 'Store' ) , 'collection' ) ; $ this -> validatePrompt ( 'description' , $ this -> text ( 'Description' ) , 'collection' , '' ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'collection' , 0 ) ; $ this -> validateComponent ( 'collection' ) ; $ this -> addCollection ( ) ; }
Add a new collection step by step
Add a new collection step by step