Changes between Version 2 and Version 3 of PrevTechDoc


Ignore:
Timestamp:
2010-06-03T21:57:23Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PrevTechDoc

    v2 v3  
    2121
    2222To check whether the iPeer is UBC CWL integrated or not:
     23{{{
    2324if (isset($this->rdAuth->customIntegrateCWL) && $this->rdAuth->customIntegrateCWL) {
    2425// ipeer is integrated with CWL
    2526}
    26 Get Sys_Parameter from iPeer:
     27}}}
     28=== Get Sys_Parameter from iPeer: ===
    2729e.g. Get the parameter code ‘system.upload_dir’:
     30{{{
    2831                $uploadDir = $this->sysContainer->getParamByParamCode('system.upload_dir');
    2932                $uploadFile = APP.$uploadDir['parameter_value'] . $filename;
     33}}}
    3034
    31 
    32 Some useful functions:
     35=== Some useful functions: ===
    33361.Get all accessible courses:
    34         $courseList = $this->sysContainer->getMyCourseList();
     37{{{     $courseList = $this->sysContainer->getMyCourseList(); }}}
    3538
    36392.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; }}}
    3942Caution: To upgrade CakePHP library for iPeer, please also look into the following files to change for iPeer customization:
    40431.replace all thtml -> tpl.php, since iPeer use php extension instead of thtml