/** * * @param string $bannerID * @param integer $term * @param ApcDataProvider|LocalCacheDataProvider $provider * @return Student */ public static function getStudentByBannerID($bannerID, $term, $provider = NULL) { if (is_null($provider)) { $provider = StudentDataProvider::getInstance(); } return $provider->getStudentById($bannerID, $term); }
public function execute(CommandContext $context) { PHPWS_Core::initModClass('hms', 'StudentDataProvider.php'); $provider = StudentDataProvider::getInstance(); $provider->clearCache(); NQ::simple('hms', hms\NotificationView::SUCCESS, 'Cache cleared.'); }