src/Form.php
private function initPersist()
    {
        $this->debug->groupCollapsed(__METHOD__);
        $this->persist = new Persist($this->cfg['name'], array(
            'persist'           => $this->cfg['persist'],
            'trashCollectable'  => $this->cfg['trashCollectable'],
            'userKey' => $this->cfg['verifyKey']
                ? ( isset($_REQUEST['_key_']) ? $_REQUEST['_key_'] : null )
                : false,
        ));
        if (!$this->persist->pageCount()) {
            $this->debug->info('persist just created... add first page');
            $firstPageName = \key($this->cfg['pages']);
            $this->persist->appendPages(array($firstPageName));
        }
        $this->debug->groupEnd();
    }
private function initPersist()
    {
        $this->debug->groupCollapsed(__METHOD__);
        $this->persist = new Persist($this->cfg['name'], array(
            'persist'           => $this->cfg['persist'],
            'trashCollectable'  => $this->cfg['trashCollectable'],
            'userKey' => $this->cfg['verifyKey']
                ? ( isset($_REQUEST['_key_']) ? $_REQUEST['_key_'] : null )
                : false,
        ));
        if (!$this->persist->pageCount()) {
            $this->debug->info('persist just created... add first page');
            $firstPageName = \key($this->cfg['pages']);
            $this->persist->appendPages(array($firstPageName));
        }
        $this->debug->groupEnd();
    }
private function initPersist ( ) { $ this -> debug -> groupCollapsed ( __METHOD__ ) ; $ this -> persist = new Persist ( $ this -> cfg [ 'name' ] , array ( 'persist' => $ this -> cfg [ 'persist' ] , 'trashCollectable' => $ this -> cfg [ 'trashCollectable' ] , 'userKey' => $ this -> cfg [ 'verifyKey' ] ? ( isset ( $ _REQUEST [ '_key_' ] ) ? $ _REQUEST [ '_key_' ] : null ) : false , ) ) ; if ( ! $ this -> persist -> pageCount ( ) ) { $ this -> debug -> info ( 'persist just created... add first page' ) ; $ firstPageName = \ key ( $ this -> cfg [ 'pages' ] ) ; $ this -> persist -> appendPages ( array ( $ firstPageName ) ) ; } $ this -> debug -> groupEnd ( ) ; }
Initialize persist object

@return void
Initialize persist object