| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Survey phrases class. More...
 Collaboration diagram for ilSurveyPhrases:
 Collaboration diagram for ilSurveyPhrases:| Public Member Functions | |
| __construct () | |
| ilSurveyPhrases constructor | |
| deletePhrases ($phrase_array) | |
| Delete phrases from the database. | |
| updatePhrase ($phrase_id) | |
| Saves a set of categories to a default phrase. | |
| savePhrase () | |
| Saves a set of categories to a default phrase. | |
| __get ($value) | |
| Object getter. | |
| __set ($key, $value) | |
| Object setter. | |
| Static Public Member Functions | |
| static & | _getAvailablePhrases ($useronly=0) | 
| Gets the available phrases from the database. | |
| static & | _getCategoriesForPhrase ($phrase_id) | 
| Gets the available categories for a given phrase. | |
| Protected Attributes | |
| $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 41 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::__get | ( | $value | ) | 
Object getter.
Definition at line 213 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::__set | ( | $key, | |
| $value | |||
| ) | 
Object setter.
Definition at line 233 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 52 of file class.ilSurveyPhrases.php.
References $ilUser, $lng, $result, and $row.
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), ilSurveyPhrasesGUI\phrases(), SurveySingleChoiceQuestionGUI\wizardanswers(), and SurveyMatrixQuestionGUI\wizardcolumns().
 Here is the caller graph for this function:
 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 95 of file class.ilSurveyPhrases.php.
References $lng, $result, and $row.
Referenced by ilSurveyPhrasesGUI\deletePhrasesForm(), ilSurveyPhrasesGUI\phrases(), SurveySingleChoiceQuestionGUI\wizardanswers(), and SurveyMatrixQuestionGUI\wizardcolumns().
 Here is the caller graph for this function:
 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 124 of file class.ilSurveyPhrases.php.
| ilSurveyPhrases::savePhrase | ( | ) | 
Saves a set of categories to a default phrase.
Definition at line 179 of file class.ilSurveyPhrases.php.
References $ilUser.
| 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 public | 
Definition at line 142 of file class.ilSurveyPhrases.php.
References $ilUser.
| 
 | protected | 
Definition at line 36 of file class.ilSurveyPhrases.php.