|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class SurveyCategories. More...
Collaboration diagram for SurveyCategories:Public Member Functions | |
| __construct () | |
| Constructor @access public. More... | |
| getCategoryCount () | |
| Returns the number of categories. More... | |
| addCategoryAtPosition ($categoryname, $position, $other=0, $neutral=0, $label=null) | |
| Adds a category at a given position. More... | |
| moveCategoryUp ($index) | |
| moveCategoryDown ($index) | |
| addCategory ($categoryname, $other=0, $neutral=0, $label=null, $scale=null) | |
| Adds a category. More... | |
| addCategoryArray ($categories) | |
| Adds a category array. More... | |
| removeCategory ($index) | |
| Removes a category from the list of categories. More... | |
| removeCategories ($array) | |
| Removes many categories from the list of categories. More... | |
| removeCategoryWithName ($name) | |
| Removes a category from the list of categories. More... | |
| getCategory ($index) | |
| Returns the name of a category for a given index. More... | |
| getCategoryForScale ($scale) | |
| Returns the name of a category for a given index. More... | |
| getCategoryIndex ($name) | |
| Returns the index of a category with a given name. More... | |
| getIndex ($category) | |
| Returns the index of a category. More... | |
| getNewScale () | |
| getScale ($index) | |
| flushCategories () | |
| Empties the categories list. More... | |
| getCategories () | |
| Get categories. More... | |
Data Fields | |
| $categories | |
Protected Attributes | |
| $log | |
| SurveyCategories::__construct | ( | ) |
Constructor @access public.
Definition at line 56 of file class.SurveyCategories.php.
References ilLoggerFactory\getLogger().
Here is the call graph for this function:| SurveyCategories::addCategory | ( | $categoryname, | |
$other = 0, |
|||
$neutral = 0, |
|||
$label = null, |
|||
$scale = null |
|||
| ) |
Adds a category.
Adds a category
| integer | $categoryname | The name of the category @access public |
Definition at line 124 of file class.SurveyCategories.php.
| SurveyCategories::addCategoryArray | ( | $categories | ) |
Adds a category array.
Adds a category array
| array | $categories | An array with categories @access public |
Definition at line 138 of file class.SurveyCategories.php.
References $categories.
| SurveyCategories::addCategoryAtPosition | ( | $categoryname, | |
| $position, | |||
$other = 0, |
|||
$neutral = 0, |
|||
$label = null |
|||
| ) |
Adds a category at a given position.
Adds a category at a given position
| string | $categoryname | The name of the category |
| integer | $position | The position of the category (starting with index 0) @access public |
Definition at line 86 of file class.SurveyCategories.php.
| SurveyCategories::flushCategories | ( | ) |
Empties the categories list.
Empties the categories list
@access public
Definition at line 297 of file class.SurveyCategories.php.
| SurveyCategories::getCategories | ( | ) |
Get categories.
return
Definition at line 308 of file class.SurveyCategories.php.
References $categories.
| SurveyCategories::getCategory | ( | $index | ) |
Returns the name of a category for a given index.
Returns the name of a category for a given index
| integer | $index | The index of the category |
Definition at line 204 of file class.SurveyCategories.php.
References $index.
| SurveyCategories::getCategoryCount | ( | ) |
Returns the number of categories.
Returns the number of categories
Definition at line 71 of file class.SurveyCategories.php.
| SurveyCategories::getCategoryForScale | ( | $scale | ) |
Returns the name of a category for a given index.
| integer | $scale | The scale of the category |
Definition at line 219 of file class.SurveyCategories.php.
| SurveyCategories::getCategoryIndex | ( | $name | ) |
Returns the index of a category with a given name.
| string | $name | The name of the category @access public |
Definition at line 236 of file class.SurveyCategories.php.
| SurveyCategories::getIndex | ( | $category | ) |
Returns the index of a category.
| string | $category | The category object @access public |
Definition at line 253 of file class.SurveyCategories.php.
References $index.
| SurveyCategories::getNewScale | ( | ) |
Definition at line 263 of file class.SurveyCategories.php.
References $index.
Referenced by getScale().
Here is the caller graph for this function:| SurveyCategories::getScale | ( | $index | ) |
Definition at line 276 of file class.SurveyCategories.php.
References $index, and getNewScale().
Here is the call graph for this function:| SurveyCategories::moveCategoryDown | ( | $index | ) |
| SurveyCategories::moveCategoryUp | ( | $index | ) |
| SurveyCategories::removeCategories | ( | $array | ) |
Removes many categories from the list of categories.
Removes many categories from the list of categories
| array | $array | An array containing the index positions of the categories to be removed @access public |
Definition at line 167 of file class.SurveyCategories.php.
References $index.
| SurveyCategories::removeCategory | ( | $index | ) |
Removes a category from the list of categories.
Removes a category from the list of categories
| integer | $index | The index of the category to be removed @access public |
Definition at line 152 of file class.SurveyCategories.php.
References $index.
Referenced by removeCategoryWithName().
Here is the caller graph for this function:| SurveyCategories::removeCategoryWithName | ( | $name | ) |
Removes a category from the list of categories.
Removes a category from the list of categories
| string | $name | The name of the category to be removed @access public |
Definition at line 184 of file class.SurveyCategories.php.
References $index, $name, and removeCategory().
Here is the call graph for this function:| SurveyCategories::$categories |
Definition at line 50 of file class.SurveyCategories.php.
Referenced by addCategoryArray(), and getCategories().
|
protected |
Definition at line 40 of file class.SurveyCategories.php.