Example #1
0
 /**
  * Accessor method: Load the field record and user data associated with the
  * object's fieldid and userid
  * @internal This method should not generally be overwritten by child classes.
  */
 public function load_data()
 {
     parent::load_data();
     if (!empty($this->field)) {
         $this->field->name = get_string('pluginname', 'profilefield_o365');
     }
 }
Example #2
0
 /**
  * Accessor method: Load the field record and user data associated with the
  * object's fieldid and userid
  * @internal This method should not generally be overwritten by child classes.
  */
 public function load_data()
 {
     parent::load_data();
     if (!empty($this->field)) {
         $label = get_string('pluginname', 'profilefield_oidc');
         $authconfig = get_config('auth_oidc');
         if (!empty($authconfig->opname)) {
             $label = $authconfig->opname;
         }
         $this->field->name = $label;
     }
 }