ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilStartingPoint. More...
Public Member Functions | |
__construct (int $a_id=0) | |
setStartingPoint (int $a_starting_point) | |
getStartingPoint () | |
setStartingObject (int $a_starting_object) | |
getStartingObject () | |
setPosition (int $a_starting_position) | |
getPosition () | |
setRuleType (int $a_rule_type) | |
getRuleType () | |
setRuleOptions (string $a_rule_options) | |
serialized string More... | |
getCalendarView () | |
Gets calendar view. More... | |
setCalendarView (int $calendar_view) | |
Sets calendar view. More... | |
getCalendarPeriod () | |
setCalendarPeriod (int $calendar_period) | |
getRuleOptions () | |
save () | |
insert starting point into database More... | |
update () | |
update starting point More... | |
delete () | |
delete starting point More... | |
getMaxPosition () | |
saveOrder (array $a_items) | |
Save all starting point positions. More... | |
Static Public Member Functions | |
static | getStartingPoints () |
Get all the starting points in database. More... | |
static | onRoleDeleted (ilObjRole $role) |
static | getRolesWithStartingPoint () |
get array with all roles which have starting point defined. More... | |
static | getGlobalRolesWithoutStartingPoint () |
Get id and title of the roles without starting points. More... | |
static | reArrangePositions (array $a_items) |
Data Fields | |
const | FALLBACK_RULE = 1 |
const | ROLE_BASED = 2 |
const | USER_SELECTION_RULE = 3 |
Protected Attributes | |
const | ORDER_POSITION_MIN = 0 |
const | ORDER_POSITION_MAX = 9999 |
int | $starting_point = null |
int | $starting_object = null |
int | $starting_position = null |
int | $rule_type = null |
string | $rule_options = null |
int | $id |
int | $calendar_view = null |
int | $calendar_period = null |
ilDBInterface | $db |
Private Member Functions | |
setData () | |
Class ilStartingPoint.
Definition at line 25 of file class.ilStartingPoint.php.
ilStartingPoint::__construct | ( | int | $a_id = 0 | ) |
Definition at line 47 of file class.ilStartingPoint.php.
References $DIC, and setData().
ilStartingPoint::delete | ( | ) |
ilStartingPoint::getCalendarPeriod | ( | ) |
Definition at line 136 of file class.ilStartingPoint.php.
References $calendar_period.
Referenced by save(), and update().
ilStartingPoint::getCalendarView | ( | ) |
Gets calendar view.
Definition at line 123 of file class.ilStartingPoint.php.
References $calendar_view.
Referenced by save(), and update().
|
static |
Get id and title of the roles without starting points.
Definition at line 228 of file class.ilStartingPoint.php.
References $DIC, and ANONYMOUS_ROLE_ID.
Referenced by ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\startingPoints().
ilStartingPoint::getMaxPosition | ( | ) |
Definition at line 339 of file class.ilStartingPoint.php.
References ILIAS\Repository\int().
Referenced by save().
ilStartingPoint::getPosition | ( | ) |
Definition at line 97 of file class.ilStartingPoint.php.
References $starting_position.
Referenced by update().
|
static |
get array with all roles which have starting point defined.
Definition at line 199 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, $res, and ILIAS\Repository\int().
Referenced by ilUserUtil\getStartingPoint().
ilStartingPoint::getRuleOptions | ( | ) |
Definition at line 146 of file class.ilStartingPoint.php.
References $rule_options.
Referenced by save(), and update().
ilStartingPoint::getRuleType | ( | ) |
Definition at line 107 of file class.ilStartingPoint.php.
References $rule_type.
Referenced by save(), and update().
ilStartingPoint::getStartingObject | ( | ) |
Definition at line 87 of file class.ilStartingPoint.php.
References $starting_object.
Referenced by save(), and update().
ilStartingPoint::getStartingPoint | ( | ) |
Definition at line 77 of file class.ilStartingPoint.php.
References $starting_point.
Referenced by save(), and update().
|
static |
Get all the starting points in database.
Definition at line 154 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
|
static |
Definition at line 179 of file class.ilStartingPoint.php.
References $data, ilObject\getId(), ilObjectFactory\getInstanceByObjId(), and ILIAS\Repository\int().
|
static |
Definition at line 351 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
ilStartingPoint::save | ( | ) |
insert starting point into database
Definition at line 261 of file class.ilStartingPoint.php.
References getCalendarPeriod(), getCalendarView(), getMaxPosition(), getRuleOptions(), getRuleType(), getStartingObject(), getStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilStartingPoint::saveOrder | ( | array | $a_items | ) |
Save all starting point positions.
Ordering values with increment +10
Definition at line 366 of file class.ilStartingPoint.php.
ilStartingPoint::setCalendarPeriod | ( | int | $calendar_period | ) |
Definition at line 141 of file class.ilStartingPoint.php.
References $calendar_period.
Referenced by setData().
ilStartingPoint::setCalendarView | ( | int | $calendar_view | ) |
Sets calendar view.
Definition at line 131 of file class.ilStartingPoint.php.
References $calendar_view.
Referenced by setData().
|
private |
Definition at line 56 of file class.ilStartingPoint.php.
References $query, $res, setCalendarPeriod(), setCalendarView(), setPosition(), setRuleOptions(), setRuleType(), setStartingObject(), and setStartingPoint().
Referenced by __construct().
ilStartingPoint::setPosition | ( | int | $a_starting_position | ) |
Definition at line 92 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleOptions | ( | string | $a_rule_options | ) |
serialized string
Definition at line 115 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleType | ( | int | $a_rule_type | ) |
Definition at line 102 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingObject | ( | int | $a_starting_object | ) |
Definition at line 82 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingPoint | ( | int | $a_starting_point | ) |
Definition at line 72 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::update | ( | ) |
update starting point
Definition at line 297 of file class.ilStartingPoint.php.
References getCalendarPeriod(), getCalendarView(), getPosition(), getRuleOptions(), getRuleType(), getStartingObject(), getStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
protected |
Definition at line 43 of file class.ilStartingPoint.php.
Referenced by getCalendarPeriod(), and setCalendarPeriod().
|
protected |
Definition at line 42 of file class.ilStartingPoint.php.
Referenced by getCalendarView(), and setCalendarView().
|
protected |
Definition at line 45 of file class.ilStartingPoint.php.
|
protected |
Definition at line 41 of file class.ilStartingPoint.php.
|
protected |
Definition at line 40 of file class.ilStartingPoint.php.
Referenced by getRuleOptions().
|
protected |
Definition at line 39 of file class.ilStartingPoint.php.
Referenced by getRuleType().
|
protected |
Definition at line 37 of file class.ilStartingPoint.php.
Referenced by getStartingObject().
|
protected |
Definition at line 36 of file class.ilStartingPoint.php.
Referenced by getStartingPoint().
|
protected |
Definition at line 38 of file class.ilStartingPoint.php.
Referenced by getPosition().
const ilStartingPoint::FALLBACK_RULE = 1 |
Definition at line 32 of file class.ilStartingPoint.php.
|
protected |
Definition at line 29 of file class.ilStartingPoint.php.
|
protected |
Definition at line 28 of file class.ilStartingPoint.php.
const ilStartingPoint::ROLE_BASED = 2 |
Definition at line 33 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\fillRow(), ilUserRoleStartingPointTableGUI\getItems(), ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\saveStartingPoint().
const ilStartingPoint::USER_SELECTION_RULE = 3 |
Definition at line 34 of file class.ilStartingPoint.php.