public function addPage($id = "", $header = "", $meta = array())
    {
        $objPage = new Page($id, $header, $meta);
        $this->__elements->addObject($objPage);

        if ($this->__elements->count() == 1) {
            // Add unique id field.
            $this->addHiddenField("vf__uniqueid", ValidForm::VFORM_STRING, array(
                "default" => $this->getUniqueId()
            ));
        }

        $this->__pagecount ++;

        return $objPage;
    }
public function addPage($id = "", $header = "", $meta = array())
    {
        $objPage = new Page($id, $header, $meta);
        $this->__elements->addObject($objPage);

        if ($this->__elements->count() == 1) {
            // Add unique id field.
            $this->addHiddenField("vf__uniqueid", ValidForm::VFORM_STRING, array(
                "default" => $this->getUniqueId()
            ));
        }

        $this->__pagecount ++;

        return $objPage;
    }
public function addPage ( $ id = "" , $ header = "" , $ meta = array ( ) ) { $ objPage = new Page ( $ id , $ header , $ meta ) ; $ this -> __elements -> addObject ( $ objPage ) ; if ( $ this -> __elements -> count ( ) == 1 ) { // Add unique id field. $ this -> addHiddenField ( "vf__uniqueid" , ValidForm :: VFORM_STRING , array ( "default" => $ this -> getUniqueId ( ) ) ) ; } $ this -> __pagecount ++ ; return $ objPage ; }
Add a page to the wizard

See {@link \ValidFormBuilder\Page}

@param string $id Page ID
@param string $header Page title
@param array $meta Meta array
@return \ValidFormBuilder\Page
Add a page to the wizard