Skip to content
Snippets Groups Projects
Select Git revision
  • cf961f344e929ff56d8f98154b6de2601355bf16
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

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);
        }
    }