Exemplo n.º 1
0
 /**
  * create new instance of subclass content-module
  *
  * creates new instance of subclass content-module and gets permissions
  * @access public
  * @param string $module_id module-id
  * @param string $module_type module-type
  * @param string $is_connected is module connected to seminar?
  */
 function newContentModule($module_id, $module_type, $is_connected = false)
 {
     global $seminar_id, $current_module, $caching_active;
     $current_module = $module_id;
     //      echo "call module $module_id";
     if ($this->is_first_call and $seminar_id != "" and $is_connected == true) {
         $id = ObjectConnections::getConnectionModuleId($seminar_id, "crs", $this->cms_type);
         if ($id != false) {
             if ($this->user->isConnected()) {
                 $this->permissions->checkUserPermissions($id);
             }
             $this->is_first_call = false;
         }
         //          echo "first call, ref_id $id";
     }
     parent::newContentModule($module_id, $module_type, $is_connected);
 }