1<?php 2 3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */ 4 5/** 6 * User profile prompt subservice. 7 * 8 * Manages info texts on the personal profile and prompting mechanics. 9 * 10 * Do not use, not an official API yet. Only for user service internals. 11 * 12 * @author killing@leifos.de 13 * @ingroup ServicesUser 14 */ 15class ilUserProfilePromptService 16{ 17 /** 18 * Constructor 19 */ 20 public function __construct() 21 { 22 } 23 24 /** 25 * Get data gateway 26 * @return ilUserProfilePromptDataGateway 27 */ 28 public function data() 29 { 30 return new ilUserProfilePromptDataGateway(); 31 } 32 33 /** 34 * Get a settings object 35 * @param int $mode 36 * @param int $days 37 * @param array $info_texts 38 * @param array $prompt_texts 39 * @return ilProfilePromptSettings 40 */ 41 public function settings(int $mode, int $days, array $info_texts, array $prompt_texts) 42 { 43 return new ilProfilePromptSettings( 44 $mode, 45 $days, 46 $info_texts, 47 $prompt_texts 48 ); 49 } 50} 51