public function createPager($contextId = null)
    {
        $pager = new Pager($this);
        $pager->setFor($contextId);

        return $this->pagers[$this->makeParameterId($contextId)] = $pager;
    }
public function createPager($contextId = null)
    {
        $pager = new Pager($this);
        $pager->setFor($contextId);

        return $this->pagers[$this->makeParameterId($contextId)] = $pager;
    }
public function createPager ( $ contextId = null ) { $ pager = new Pager ( $ this ) ; $ pager -> setFor ( $ contextId ) ; return $ this -> pagers [ $ this -> makeParameterId ( $ contextId ) ] = $ pager ; }
Factory method creating a Pager object.

@param string $contextId [optional]

@return Pager
Factory method creating a Pager object .