/** * function getListViewerAccounts * <pre> * Returns a ListIterator for the list of web site accounts this viewer * has access to modify. * </pre> * @param $sortBy [STRING] the name of the field to sort by (can be a * comma seperated list). * @return [OBJECT] */ function getListViewerAccounts($sortBy = '') { $genViewer = new RowManager_ViewerManager(); // if the current viewer is limited to the Group Access scope then // filter list based on current group. if (!$this->hasSitePriv()) { $viewerMgr = $this->getViewerManager(); $genViewer->setAccountGroupID($viewerMgr->getAccountGroupID()); } return $genViewer->getListIterator($sortBy); }