|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Survey phrases class. More...
Collaboration diagram for ilSurveyPhrases:Public Member Functions | |
| __construct () | |
| ilSurveyPhrases constructor More... | |
| deletePhrases ($phrase_array) | |
| Delete phrases from the database. More... | |
| updatePhrase ($phrase_id) | |
| Saves a set of categories to a default phrase. More... | |
| savePhrase () | |
| Saves a set of categories to a default phrase. More... | |
| __get ($value) | |
| Object getter. More... | |
| __set ($key, $value) | |
| Object setter. More... | |
Static Public Member Functions | |
| static | _getAvailablePhrases ($useronly=0) |
| Gets the available phrases from the database. More... | |
| static | _getCategoriesForPhrase ($phrase_id) |
| Gets the available categories for a given phrase. More... | |
Protected Attributes | |
| $db | |
| $user | |
| $arrData | |
Survey phrases class.
The ilSurveyPhrases class manages survey phrases (collections of survey categories) for ordinal survey question types.
Definition at line 34 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::__construct | ( | ) |
ilSurveyPhrases constructor
Definition at line 51 of file class.ilSurveyPhrases.php.
Here is the call graph for this function:| ilSurveyPhrases::__get | ( | $value | ) |
Object getter.
Definition at line 234 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::__set | ( | $key, | |
| $value | |||
| ) |
Object setter.
Definition at line 250 of file class.ilSurveyPhrases.php.
|
static |
Gets the available phrases from the database.
| boolean | $useronly | Returns only the user defined phrases if set to true. The default is false. |
Definition at line 66 of file class.ilSurveyPhrases.php.
References $DIC, $ilDB, $ilUser, $lng, and $result.
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), SurveyQuestionGUI\initPhrasesForm(), and ilSurveyPhrasesGUI\phrases().
Here is the caller graph for this function:
|
static |
Gets the available categories for a given phrase.
| integer | $phrase_id | The database id of the given phrase |
Definition at line 111 of file class.ilSurveyPhrases.php.
References $DIC, $ilDB, $lng, and $result.
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), SurveyQuestionGUI\initPhrasesForm(), and ilSurveyPhrasesGUI\phrases().
Here is the caller graph for this function:| ilSurveyPhrases::deletePhrases | ( | $phrase_array | ) |
Delete phrases from the database.
| array | $phrase_array | An array containing phrase id's to delete |
Definition at line 141 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::savePhrase | ( | ) |
Saves a set of categories to a default phrase.
Definition at line 198 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::updatePhrase | ( | $phrase_id | ) |
Saves a set of categories to a default phrase.
| array | $phrases | The database ids of the seleted phrases |
| string | $title | The title of the default phrase @access public |
Definition at line 158 of file class.ilSurveyPhrases.php.
|
protected |
Definition at line 46 of file class.ilSurveyPhrases.php.
|
protected |
Definition at line 39 of file class.ilSurveyPhrases.php.
Referenced by deletePhrases(), savePhrase(), and updatePhrase().
|
protected |
Definition at line 44 of file class.ilSurveyPhrases.php.
Referenced by savePhrase(), and updatePhrase().