Select Git revision
ExternalUser.php
Forked from
Stud.IP / Stud.IP
2584 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ExternalUser.php 1.00 KiB
<?php
/**
* ExternalUser
* Model class for blubber users that are not part of auth_user_md5 table
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Rasmus Fuhse <fuhse@data-quest.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
* @since 5.0
*/
class ExternalUser extends SimpleORMap
{
/**
* Configures this model.
*
* @param array $config Configuration array
*/
protected static function configure($config = [])
{
$config['db_table'] = 'external_users';
$config['belongs_to']['host'] = [
'class_name' => OERHost::class,
'foreign_key' => 'host_id'
];
$config['serialized_fields']['data'] = 'JSONArrayObject';
parent::configure($config);
}
}