ILIAS
Release_4_1_x_branch Revision 61804
|
Class SurveyCategories. More...
Public Member Functions | |
SurveyCategories () | |
Constructor public. | |
getCategoryCount () | |
Returns the number of categories. | |
addCategoryAtPosition ($categoryname, $position, $other=0, $neutral=0, $label=null) | |
Adds a category at a given position. | |
moveCategoryUp ($index) | |
moveCategoryDown ($index) | |
addCategory ($categoryname, $other=0, $neutral=0, $label=null, $scale=null) | |
Adds a category. | |
addCategoryArray ($categories) | |
Adds a category array. | |
removeCategory ($index) | |
Removes a category from the list of categories. | |
removeCategories ($array) | |
Removes many categories from the list of categories. | |
removeCategoryWithName ($name) | |
Removes a category from the list of categories. | |
getCategory ($index) | |
Returns the name of a category for a given index. | |
getCategoryForScale ($scale) | |
Returns the name of a category for a given index. | |
getCategoryIndex ($name) | |
Returns the index of a category with a given name. | |
getIndex ($category) | |
Returns the index of a category. | |
getNewScale () | |
getScale ($index) | |
flushCategories () | |
Empties the categories list. |
Data Fields | |
$categories |
Class SurveyCategories.
Definition at line 36 of file class.SurveyCategories.php.
SurveyCategories::addCategory | ( | $categoryname, | |
$other = 0 , |
|||
$neutral = 0 , |
|||
$label = null , |
|||
$scale = null |
|||
) |
Adds a category.
Adds a category
integer | $categoryname | The name of the category 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 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) public |
Definition at line 81 of file class.SurveyCategories.php.
SurveyCategories::flushCategories | ( | ) |
Empties the categories list.
Empties the categories list
public
Definition at line 307 of file class.SurveyCategories.php.
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 207 of file class.SurveyCategories.php.
SurveyCategories::getCategoryCount | ( | ) |
Returns the number of categories.
Returns the number of categories
Definition at line 66 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 225 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 public |
Definition at line 241 of file class.SurveyCategories.php.
SurveyCategories::getIndex | ( | $category | ) |
Returns the index of a category.
string | $category | The category object public |
Definition at line 260 of file class.SurveyCategories.php.
SurveyCategories::getNewScale | ( | ) |
Definition at line 272 of file class.SurveyCategories.php.
Referenced by getScale().
SurveyCategories::getScale | ( | $index | ) |
Definition at line 285 of file class.SurveyCategories.php.
References getNewScale().
SurveyCategories::moveCategoryDown | ( | $index | ) |
Definition at line 105 of file class.SurveyCategories.php.
SurveyCategories::moveCategoryUp | ( | $index | ) |
Definition at line 95 of file class.SurveyCategories.php.
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 public |
Definition at line 167 of file class.SurveyCategories.php.
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 public |
Definition at line 152 of file class.SurveyCategories.php.
Referenced by removeCategoryWithName().
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 public |
Definition at line 185 of file class.SurveyCategories.php.
References removeCategory().
SurveyCategories::SurveyCategories | ( | ) |
Constructor public.
Definition at line 52 of file class.SurveyCategories.php.
SurveyCategories::$categories |
Definition at line 46 of file class.SurveyCategories.php.
Referenced by addCategoryArray().