ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct () | |
deletePhrases (array $phrase_array) | |
Delete phrases from the database. More... | |
updatePhrase (int $phrase_id) | |
savePhrase () | |
Saves a set of categories to a default phrase. More... | |
__get (string $value) | |
__set (string $key, $value) | |
Static Public Member Functions | |
static | _getAvailablePhrases (bool $useronly=false) |
Gets the available phrases from the database. More... | |
static | _getCategoriesForPhrase (int $phrase_id) |
Gets the available categories for a given phrase. More... | |
Protected Attributes | |
ilDBInterface | $db |
ilObjUser | $user |
array | $arrData |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Survey phrases class
The ilSurveyPhrases class manages survey phrases (collections of survey categories) for ordinal survey question types.
Definition at line 28 of file class.ilSurveyPhrases.php.
ilSurveyPhrases::__construct | ( | ) |
Definition at line 35 of file class.ilSurveyPhrases.php.
References $DIC, and ILIAS\Repository\user().
ilSurveyPhrases::__get | ( | string | $value | ) |
Definition at line 205 of file class.ilSurveyPhrases.php.
ilSurveyPhrases::__set | ( | string | $key, |
$value | |||
) |
mixed | null | $value |
Definition at line 216 of file class.ilSurveyPhrases.php.
References ILIAS\LTI\ToolProvider\$key.
|
static |
Gets the available phrases from the database.
bool | $useronly | Returns only the user defined phrases if set to true. The default is false. |
Definition at line 50 of file class.ilSurveyPhrases.php.
References $DIC, $ilDB, $ilUser, $lng, and ILIAS\Repository\int().
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), SurveyQuestionGUI\initPhrasesForm(), and ilSurveyPhrasesGUI\phrases().
|
static |
Gets the available categories for a given phrase.
int | $phrase_id | The database id of the given phrase |
Definition at line 89 of file class.ilSurveyPhrases.php.
References $DIC, $ilDB, $lng, and ILIAS\Repository\int().
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), SurveyQuestionGUI\initPhrasesForm(), and ilSurveyPhrasesGUI\phrases().
ilSurveyPhrases::deletePhrases | ( | array | $phrase_array | ) |
Delete phrases from the database.
array | $phrase_array | An array containing phrase id's to delete |
Definition at line 117 of file class.ilSurveyPhrases.php.
ilSurveyPhrases::savePhrase | ( | ) |
Saves a set of categories to a default phrase.
Definition at line 169 of file class.ilSurveyPhrases.php.
References $db, $i, $ilDB, $ilUser, and $user.
ilSurveyPhrases::updatePhrase | ( | int | $phrase_id | ) |
Definition at line 128 of file class.ilSurveyPhrases.php.
|
protected |
Definition at line 33 of file class.ilSurveyPhrases.php.
|
protected |
Definition at line 30 of file class.ilSurveyPhrases.php.
Referenced by deletePhrases(), savePhrase(), and updatePhrase().
|
protected |
Definition at line 31 of file class.ilSurveyPhrases.php.
Referenced by savePhrase(), and updatePhrase().