/** * This method is invoked when the page enters 'onPreRender' stage. * * @param TEventParameter event parameter to be passed to the event handlers */ public function onPreRender($param) { parent::onPreRender($param); if (!$this->IsCallBack) { $this->setPageTitle('My WBT Courses'); $clientScript = $this->getPage()->getClientScript(); $scormApiPath = $this->publishAsset('../App_Code/Scorm/API_1484_11.js', __CLASS__); $clientScript->registerScriptFile($scormApiPath, $scormApiPath); $this->setCourseIdsInSession(); $this->bindUserCourseRepeater(); } }