* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 * @since 6.0 */ /** * The LtiToolPrivacySettings class represents the privacy * settings a user made for a specific LTI tool deployment. * It not only stores the decision if the privacy statement of the tool * has been accepted, but also which data may be transferred to the * LTI tool. * * @property array $id alias for pk * @property int $tool_id database column * @property string $user_id database column * @property int $accepted database column * @property string $allowed_optional_fields database column * @property int $mkdate database column * @property int $chdate database column * @property User $user belongs_to User * @property LtiTool $tool belongs_to LtiTool */ class LtiToolPrivacySettings extends SimpleORMap { protected static function configure($config = []) { $config['db_table'] = 'lti_tool_privacy_settings'; $config['belongs_to']['user'] = [ 'class_name' => User::class, 'foreign_key' => 'user_id' ]; $config['belongs_to']['tool'] = [ 'class_name' => LtiTool::class, 'foreign_key' => 'tool_id' ]; parent::configure($config); } }