/**
  * Custom validation.
  *
  * @throws \coding_exception
  * @return void
  */
 protected function validate_data()
 {
     parent::validate_data();
     if (empty($this->other['viewed'])) {
         throw new \coding_exception('Other must contain the key viewed.');
     }
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'broadecosmod';
     parent::init();
 }
 /**
  * Custom validation.
  *
  * @throws \coding_exception
  * @return void
  */
 protected function validate_data()
 {
     // Hack to please the parent class. 'view' was the key used in old add_to_log().
     $this->data['other']['content'] = 'view';
     parent::validate_data();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'better_user_selector';
     parent::init();
 }
 protected function init()
 {
     $this->data['objecttable'] = 'subcourse';
     parent::init();
 }
 protected function init()
 {
     $this->data['objecttable'] = 'publication';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'commentandrating';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'superchat';
     parent::init();
 }
 /**
  * Init method.
  *
  * @return void
  */
 protected function init()
 {
     $this->data['objecttable'] = 'offlinequiz';
     parent::init();
 }
 protected function init()
 {
     $this->data['objecttable'] = 'organizer';
     parent::init();
 }
 protected function init()
 {
     $this->data['objecttable'] = 'webrtcexperiments';
     parent::init();
 }
 /**
  * Custom validation.
  *
  * @throws \coding_exception
  * @return void
  */
 protected function validate_data()
 {
     parent::validate_data();
     if (!isset($this->objectid)) {
         throw new \coding_exception('The \'cmid\' value must be set.');
     }
     if (!isset($this->other['info'])) {
         throw new \coding_exception('The \'info\' value must be set in other.');
     }
     if (!isset($this->other['logurl'])) {
         throw new \coding_exception('The \'logurl\' value must be set in other.');
     }
     if ($this->contextlevel != CONTEXT_MODULE) {
         throw new \coding_exception('Context level must be CONTEXT_MODULE.');
     }
 }
 protected function init()
 {
     $this->data['objecttable'] = 'certificate';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'iclickerregistration';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'streamline';
     parent::init();
 }
 /**
  * Custom validations.
  *
  * @throws \coding_exception in case of any problems.
  */
 protected function validate_data()
 {
     parent::validate_data();
     if (!isset($this->other['anonymous'])) {
         throw new \coding_exception('The \'anonymous\' value must be set in other.');
     }
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'collaborate';
     parent::init();
 }
 /**
  * Init method.
  *
  * @return void
  */
 protected function init()
 {
     $this->data['objecttable'] = 'grouptool';
     parent::init();
 }
Example #19
0
 /**
  * Custom validations.
  *
  * @throws \coding_exception in case of any problems.
  */
 protected function validate_data()
 {
     if (!isset($this->other['anonymous'])) {
         throw new \coding_exception("Field other['anonymous'] cannot be empty");
     }
     if (!isset($this->other['cmid'])) {
         throw new \coding_exception("Field other['cmid'] cannot be empty");
     }
     // Call parent validations.
     parent::validate_data();
 }
 /**
  * Initialisation function
  *
  * @return  void
  *
  * @since 1.0.0
  */
 protected function init()
 {
     $this->data['objecttable'] = 'elang';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'virtualstudent';
     parent::init();
 }
 /**
  * Custom validations.
  *
  * @throws \coding_exception in case of any problems.
  */
 protected function validate_data()
 {
     // Call parent validations.
     parent::validate_data();
 }
 /**
  * Initialize the event
  */
 protected function init() {
     $this->data['objecttable'] = 'mapletadp';
     parent::init();
 }
 protected function init()
 {
     $this->data['objecttable'] = 'congrea';
     parent::init();
 }
 /**
  * Initialize the event
  */
 protected function init()
 {
     $this->data['objecttable'] = 'newmodule';
     parent::init();
 }