src/Persist.php
public function appendPages($pages = array())
    {
        $iCur = $this->data['i'];
        if (isset($this->data['pages'][$iCur])) {
            $pageCount = \count($this->data['pages']);
            $range = \range($pageCount, $pageCount+\count($pages)-1);
            $this->data['pages'][$iCur]['addPages'] = \array_merge($this->data['pages'][$iCur]['addPages'], $range);
        }
        foreach ($pages as $pageName) {
            $this->data['pages'][] = array(
                'name' => $pageName,
                'completed' => false,
                'values' => array(),
                'addPages' => array(),
            );
        }
    }
public function appendPages($pages = array())
    {
        $iCur = $this->data['i'];
        if (isset($this->data['pages'][$iCur])) {
            $pageCount = \count($this->data['pages']);
            $range = \range($pageCount, $pageCount+\count($pages)-1);
            $this->data['pages'][$iCur]['addPages'] = \array_merge($this->data['pages'][$iCur]['addPages'], $range);
        }
        foreach ($pages as $pageName) {
            $this->data['pages'][] = array(
                'name' => $pageName,
                'completed' => false,
                'values' => array(),
                'addPages' => array(),
            );
        }
    }
public function appendPages ( $ pages = array ( ) ) { $ iCur = $ this -> data [ 'i' ] ; if ( isset ( $ this -> data [ 'pages' ] [ $ iCur ] ) ) { $ pageCount = \ count ( $ this -> data [ 'pages' ] ) ; $ range = \ range ( $ pageCount , $ pageCount + \ count ( $ pages ) - 1 ) ; $ this -> data [ 'pages' ] [ $ iCur ] [ 'addPages' ] = \ array_merge ( $ this -> data [ 'pages' ] [ $ iCur ] [ 'addPages' ] , $ range ) ; } foreach ( $ pages as $ pageName ) { $ this -> data [ 'pages' ] [ ] = array ( 'name' => $ pageName , 'completed' => false , 'values' => array ( ) , 'addPages' => array ( ) , ) ; } }
Append additional pages to the end

@param array $pages array/list of page names

@return void
Append additional pages to the end