Changes between Version 2 and Version 3 of PrevTechDoc
- Timestamp:
- 2010-06-03T21:57:23Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PrevTechDoc
v2 v3 21 21 22 22 To check whether the iPeer is UBC CWL integrated or not: 23 {{{ 23 24 if (isset($this->rdAuth->customIntegrateCWL) && $this->rdAuth->customIntegrateCWL) { 24 25 // ipeer is integrated with CWL 25 26 } 26 Get Sys_Parameter from iPeer: 27 }}} 28 === Get Sys_Parameter from iPeer: === 27 29 e.g. Get the parameter code ‘system.upload_dir’: 30 {{{ 28 31 $uploadDir = $this->sysContainer->getParamByParamCode('system.upload_dir'); 29 32 $uploadFile = APP.$uploadDir['parameter_value'] . $filename; 33 }}} 30 34 31 32 Some useful functions: 35 === Some useful functions: === 33 36 1.Get all accessible courses: 34 $courseList = $this->sysContainer->getMyCourseList(); 37 {{{ $courseList = $this->sysContainer->getMyCourseList(); }}} 35 38 36 39 2.Get no. of members within a group: 37 $numMembers=$event['Event']['self_eval'] ? $this->GroupsMembers->findCount('group_id='.$groupId) :38 $this->GroupsMembers->findCount('group_id='.$groupId) - 1; 40 {{{ $numMembers=$event['Event']['self_eval'] ? $this->GroupsMembers->findCount('group_id='.$groupId) : 41 $this->GroupsMembers->findCount('group_id='.$groupId) - 1; }}} 39 42 Caution: To upgrade CakePHP library for iPeer, please also look into the following files to change for iPeer customization: 40 43 1.replace all thtml -> tpl.php, since iPeer use php extension instead of thtml