/** * function __construct * <pre> * Initialize the object. * </pre> * @param $pathModuleRoot [STRING] The path to the module's root dir. * @param $viewer [OBJECT] The viewer object. * @param $sortBy [STRING] Field data to sort listManager by. * @return [void] */ function __construct($pathModuleRoot, $viewer, $sortBy, $seriesID) { $this->pathModuleRoot = $pathModuleRoot; $this->viewer = $viewer; $this->seriesID = $seriesID; if ($sortBy == '') { $sortBy = 'season_title'; } $seasonManager = new RowManager_SeasonManager(); $seasonManager->setSeriesID($seriesID); $seasonManager->setSortOrder($sortBy); $this->listManager = $seasonManager->getListIterator(); }