/**
  * constructor: initialize the service and the default data
  * @return Results
  */
 public function __construct()
 {
     parent::__construct();
     //the service is initialized by default
     $this->service = taoResults_models_classes_ResultsService::singleton();
     $this->defaultData();
 }
 public function __construct()
 {
     parent::__construct();
     $this->service = $this->getClassService();
     //the service is initialized by default
     $this->defaultData();
 }
 /**
  * constructor: initialize the service and the default data
  *
  * @access public
  * @author CRP Henri Tudor - TAO Team - {@link http://www.tao.lu}
  * @return Delivery
  */
 public function __construct()
 {
     parent::__construct();
     // the service is initialized by default
     $this->service = taoDelivery_models_classes_DeliveryAssemblyService::singleton();
     $this->defaultData();
 }
 /**
  * constructor: initialize the service and the default data
  *
  * @return Subjects
  */
 public function __construct()
 {
     parent::__construct();
     // the service is initialized by default
     $this->service = TestTakerService::singleton();
     $this->defaultData();
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct();
     if ($this->hasRequestParameter('dataset')) {
         $dataset = $this->getRequestParameter('dataset');
     } else {
         $dataset = 'verbose';
     }
     //Base state
     $this->userGridOptions = array('columns' => array('roles' => array('weight' => 2), PROPERTY_USER_UILG => array('weight' => 0.6), PROPERTY_USER_DEFLG => array('weight' => 0.6)), 'excludedProperties' => array(PROPERTY_USER_UILG), 'customProps' => array());
     //Modified state
     if ($dataset == 'restricted') {
         $this->userGridOptions['excludedProperties'][] = RDFS_LABEL;
         $this->userGridOptions['excludedProperties'][] = PROPERTY_USER_LOGIN;
         $this->userGridOptions['excludedProperties'][] = PROPERTY_USER_DEFLG;
         $this->userGridOptions['columns'][PROPERTY_USER_LASTNAME] = array('position' => 0);
     }
     //Adding custom properties
     if ($this->hasRequestParameter('customprops') && strlen($this->getRequestParameter('customprops'))) {
         $customprops = explode(',', $this->getRequestParameter('customprops'));
         foreach ($customprops as $prop) {
             $this->userGridOptions['customProps'][trim($prop)] = array();
         }
     }
 }
 /**
  * constructor: initialize the service and the default data
  * @return Delivery
  */
 public function __construct()
 {
     parent::__construct();
     $this->service = taoResultServer_models_classes_ResultServerAuthoringService::singleton();
     $this->defaultData();
 }
 /**
  * constructor: initialize the service and the default data
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     // the service is initialized by default
     $this->service = WebBrowserService::singleton();
 }
 /**
  * Initialize the service and the default data
  */
 public function __construct()
 {
     parent::__construct();
     $this->service = $this->getClassService();
     $this->eligibilityService = EligibilityService::singleton();
 }
 /**
  * constructor: initialize the service and the default data
  */
 public function __construct()
 {
     parent::__construct();
     //the service is initialized by default
     $this->service = taoWfTest_models_classes_WfTestService::singleton();
 }
 /**
  * constructor: initialize the service and the default data
  * @return Delivery
  */
 public function __construct()
 {
     parent::__construct();
     $this->service = $this->getClassService();
 }
 /**
  * overwrite the parent cloneInstance to add the requiresRight only in Tests
  * @see tao_actions_TaoModule::cloneInstance()
  * @requiresRight uri READ
  * @requiresRight classUri WRITE
  */
 public function cloneInstance()
 {
     return parent::cloneInstance();
 }
 /**
  * @see TaoModule::translateInstance
  * @requiresRight uri WRITE 
  * @return void
  */
 public function translateInstance()
 {
     parent::translateInstance();
     $this->setView('form.tpl', 'tao');
 }