ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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 () | |
getCategoryCount () | |
addCategoryAtPosition (string $categoryname, int $position, int $other=0, int $neutral=0, ?string $label=null) | |
Adds a category at a given position. More... | |
moveCategoryUp (int $index) | |
moveCategoryDown (int $index) | |
addCategory (string $categoryname, int $other=0, int $neutral=0, ?string $label=null, ?int $scale=null) | |
addCategoryArray (array $categories) | |
removeCategory (int $index) | |
removeCategories (array $array) | |
removeCategoryWithName (string $name) | |
getCategory (int $index) | |
getCategoryForScale (int $scale) | |
getCategoryIndex (string $name) | |
getIndex (ilSurveyCategory $category) | |
getNewScale () | |
getScale (int $index) | |
flushCategories () | |
getCategories () | |
Data Fields | |
array | $categories |
An array containing the categories of a nominal or ordinal question object. More... | |
Protected Attributes | |
ilLogger | $log |
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 Class SurveyCategories
Definition at line 23 of file class.SurveyCategories.php.
SurveyCategories::__construct | ( | ) |
Definition at line 33 of file class.SurveyCategories.php.
References ilLoggerFactory\getLogger().
SurveyCategories::addCategory | ( | string | $categoryname, |
int | $other = 0 , |
||
int | $neutral = 0 , |
||
?string | $label = null , |
||
?int | $scale = null |
||
) |
Definition at line 82 of file class.SurveyCategories.php.
SurveyCategories::addCategoryArray | ( | array | $categories | ) |
array | $categories | array with categories |
Definition at line 95 of file class.SurveyCategories.php.
SurveyCategories::addCategoryAtPosition | ( | string | $categoryname, |
int | $position, | ||
int | $other = 0 , |
||
int | $neutral = 0 , |
||
?string | $label = null |
||
) |
Adds a category at a given position.
int | $position | The position of the category (starting with index 0) |
Definition at line 48 of file class.SurveyCategories.php.
SurveyCategories::flushCategories | ( | ) |
Definition at line 193 of file class.SurveyCategories.php.
SurveyCategories::getCategories | ( | ) |
Definition at line 198 of file class.SurveyCategories.php.
References $categories.
SurveyCategories::getCategory | ( | int | $index | ) |
Definition at line 128 of file class.SurveyCategories.php.
References $index.
SurveyCategories::getCategoryCount | ( | ) |
Definition at line 39 of file class.SurveyCategories.php.
SurveyCategories::getCategoryForScale | ( | int | $scale | ) |
Definition at line 134 of file class.SurveyCategories.php.
SurveyCategories::getCategoryIndex | ( | string | $name | ) |
SurveyCategories::getIndex | ( | ilSurveyCategory | $category | ) |
SurveyCategories::getNewScale | ( | ) |
Definition at line 166 of file class.SurveyCategories.php.
References $index.
Referenced by getScale().
SurveyCategories::getScale | ( | int | $index | ) |
Definition at line 180 of file class.SurveyCategories.php.
References $index, and getNewScale().
SurveyCategories::moveCategoryDown | ( | int | $index | ) |
Definition at line 73 of file class.SurveyCategories.php.
References $index.
SurveyCategories::moveCategoryUp | ( | int | $index | ) |
Definition at line 64 of file class.SurveyCategories.php.
References $index.
SurveyCategories::removeCategories | ( | array | $array | ) |
int[] | $array index positions |
Definition at line 109 of file class.SurveyCategories.php.
References $index.
SurveyCategories::removeCategory | ( | int | $index | ) |
Definition at line 100 of file class.SurveyCategories.php.
Referenced by removeCategoryWithName().
SurveyCategories::removeCategoryWithName | ( | string | $name | ) |
Definition at line 117 of file class.SurveyCategories.php.
References $index, and removeCategory().
array SurveyCategories::$categories |
An array containing the categories of a nominal or ordinal question object.
Definition at line 31 of file class.SurveyCategories.php.
Referenced by getCategories().
|
protected |
Definition at line 25 of file class.SurveyCategories.php.