Example #1
0
 /**
  * @param          $record_type
  * @param ilPlugin $plugin_object
  */
 public function __construct($record_type, ilPlugin $plugin_object = NULL)
 {
     global $tpl, $ilCtrl, $ilAccess, $lng;
     $this->lng = $lng;
     if ($plugin_object) {
         $this->setLngPrefix($plugin_object->getPrefix());
         $plugin_object->loadLanguageModule();
     }
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->access = $ilAccess;
     $this->plugin_object = $plugin_object;
     $this->record_type = $record_type;
     $this->ar = new $record_type();
 }