FML/Script/Features/Paging.php
public function addPageControl(Control $pageControl, $pageNumber = null)
    {
        if ($pageNumber === null) {
            $pageNumber = count($this->pages) + 1;
        }
        $page = new PagingPage($pageControl, $pageNumber);
        return $this->addPage($page);
    }
public function addPageControl(Control $pageControl, $pageNumber = null)
    {
        if ($pageNumber === null) {
            $pageNumber = count($this->pages) + 1;
        }
        $page = new PagingPage($pageControl, $pageNumber);
        return $this->addPage($page);
    }
public function addPageControl ( Control $ pageControl , $ pageNumber = null ) { if ( $ pageNumber === null ) { $ pageNumber = count ( $ this -> pages ) + 1 ; } $ page = new PagingPage ( $ pageControl , $ pageNumber ) ; return $ this -> addPage ( $ page ) ; }
Add a new Page Control

@api
@param Control $pageControl Page Control
@param string  $pageNumber  (optional) Page number
@return static
Add a new Page Control