Ignore:
Timestamp:
2012-12-16T15:03:29-08:00 (6 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
fa62f3f
Parents:
316ecb7
Message:

Add login info header/footer feature

Two new sys parameters are added in order to display some information on
login page. This feature is for satisfying CWL integration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/controllers/surveys_controller.php

    r316ecb7 r5d708bf  
    1313    public $uses =  array('SurveyQuestion', 'Course', 'Survey', 'User', 'Question', 'Response', 'Personalize', 'Event', 'EvaluationSubmission', 'UserEnrol', 'SurveyInput', 'SurveyGroupMember', 'SurveyGroupSet', 'SurveyGroup');
    1414    public $name = 'Surveys';
    15     public $show;
    16     public $sortBy;
    17     public $direction;
    18     public $page;
    19     public $order;
    20     public $Sanitize;
    2115    public $helpers = array('Html', 'Ajax', 'Javascript', 'Time');
    2216    public $components = array('AjaxList', 'Output', 'framework');
     
    3125    function __construct()
    3226    {
    33         $this->Sanitize = new Sanitize;
    34         $this->show = empty($_REQUEST['show'])? 'null': $this->Sanitize->paranoid($_REQUEST['show']);
    35         if ($this->show == 'all') {
    36             $this->show = 99999999;
    37         }
    38         $this->sortBy = empty($_GET['sort'])? 'Survey.created': $_GET['sort'];
    39         $this->direction = empty($_GET['direction'])? 'desc': $this->Sanitize->paranoid($_GET['direction']);
    40         $this->page = empty($_GET['page'])? '1': $this->Sanitize->paranoid($_GET['page']);
    41         $this->order = $this->sortBy.' '.strtoupper($this->direction);
    4227        $this->mine_only = (!empty($_REQUEST['show_my_tool']) && ('on' == $_REQUEST['show_my_tool'] || 1 == $_REQUEST['show_my_tool'])) ? true : false;
    4328        $this->set('title_for_layout', __('Surveys', true));
Note: See TracChangeset for help on using the changeset viewer.