ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilStartingPoint. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
setStartingPoint ($a_starting_point) | |
Sets the starting point. More... | |
getStartingPoint () | |
Gets the starting point. More... | |
setStartingObject ($a_starting_object) | |
Sets the starting object. More... | |
getStartingObject () | |
Gets the starting object. More... | |
setPosition ($a_starting_position) | |
Sets the starting position. More... | |
getPosition () | |
Gets the starting point position. More... | |
setRuleType ($a_rule_type) | |
Sets rule type. More... | |
getRuleType () | |
Gets the rule type. More... | |
setRuleOptions ($a_rule_options) | |
Sets rule type options. More... | |
getCalendarView () | |
Gets calendar view. More... | |
setCalendarView (int $calendar_view) | |
Sets calendar view. More... | |
getCalendarPeriod () | |
Gets calendar Period. More... | |
setCalendarPeriod (int $calendar_period) | |
Sets calendar Period. More... | |
getRuleOptions () | |
Gets the rule options. More... | |
save () | |
insert starting point into database More... | |
update () | |
update starting point More... | |
delete () | |
delete starting point More... | |
getMaxPosition () | |
saveOrder ($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 ($a_items) |
Data Fields | |
const | ORDER_POSITION_MIN = 0 |
const | ORDER_POSITION_MAX = 9999 |
const | FALLBACK_RULE = 1 |
const | ROLE_BASED = 2 |
const | USER_SELECTION_RULE = 3 |
Protected Attributes | |
$starting_point | |
$starting_object | |
$starting_position | |
$rule_type | |
$rule_options | |
$id | |
$calendar_view | |
$calendar_period | |
Private Member Functions | |
setData ($a_id) | |
Set data for the starting point. More... | |
ilStartingPoint::__construct | ( | $a_id = 0 | ) |
Constructor.
a_id | public |
Definition at line 36 of file class.ilStartingPoint.php.
References setData().
ilStartingPoint::delete | ( | ) |
delete starting point
Definition at line 397 of file class.ilStartingPoint.php.
References $DIC, $ilDB, and $query.
ilStartingPoint::getCalendarPeriod | ( | ) |
Gets calendar Period.
Definition at line 193 of file class.ilStartingPoint.php.
References $calendar_period.
Referenced by save(), and update().
ilStartingPoint::getCalendarView | ( | ) |
Gets calendar view.
Definition at line 173 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 303 of file class.ilStartingPoint.php.
References $DIC, and ANONYMOUS_ROLE_ID.
Referenced by ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\startingPoints().
ilStartingPoint::getMaxPosition | ( | ) |
ilStartingPoint::getPosition | ( | ) |
Gets the starting point position.
public
Definition at line 130 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 272 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilUserUtil\getStartingPoint().
ilStartingPoint::getRuleOptions | ( | ) |
Gets the rule options.
public
Definition at line 214 of file class.ilStartingPoint.php.
References $rule_options.
Referenced by save(), and update().
ilStartingPoint::getRuleType | ( | ) |
Gets the rule type.
public
Definition at line 152 of file class.ilStartingPoint.php.
References $rule_type.
Referenced by save(), and update().
ilStartingPoint::getStartingObject | ( | ) |
Gets the starting object.
public
Definition at line 108 of file class.ilStartingPoint.php.
References $starting_object.
Referenced by save(), and update().
ilStartingPoint::getStartingPoint | ( | ) |
Gets the starting point.
public
Definition at line 86 of file class.ilStartingPoint.php.
References $starting_point.
Referenced by save(), and update().
|
static |
Get all the starting points in database.
Definition at line 223 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
|
static |
ilObjRole | $role |
Definition at line 252 of file class.ilStartingPoint.php.
References $data, ilObject\getId(), and ilObjectFactory\getInstanceByObjId().
|
static |
$a_items |
Definition at line 431 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
ilStartingPoint::save | ( | ) |
insert starting point into database
Definition at line 340 of file class.ilStartingPoint.php.
References $DIC, $ilDB, getCalendarPeriod(), getCalendarView(), getMaxPosition(), getRuleOptions(), getRuleType(), getStartingObject(), getStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ilStartingPoint::saveOrder | ( | $a_items | ) |
Save all starting point positions.
Ordering values with increment +10
$a_items |
Definition at line 447 of file class.ilStartingPoint.php.
References $DIC, $id, and $ilDB.
ilStartingPoint::setCalendarPeriod | ( | int | $calendar_period | ) |
Sets calendar Period.
int | $calendar_period |
Definition at line 203 of file class.ilStartingPoint.php.
References $calendar_period.
Referenced by setData().
ilStartingPoint::setCalendarView | ( | int | $calendar_view | ) |
Sets calendar view.
int | $calendar_view |
Definition at line 183 of file class.ilStartingPoint.php.
References $calendar_view.
Referenced by setData().
|
private |
Set data for the starting point.
$a_id | integer starting point id |
Definition at line 49 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, $res, setCalendarPeriod(), setCalendarView(), setPosition(), setRuleOptions(), setRuleType(), setStartingObject(), and setStartingPoint().
Referenced by __construct().
ilStartingPoint::setPosition | ( | $a_starting_position | ) |
Sets the starting position.
public
int |
Definition at line 119 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleOptions | ( | $a_rule_options | ) |
Sets rule type options.
public
int |
Definition at line 163 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleType | ( | $a_rule_type | ) |
Sets rule type.
public
int |
Definition at line 141 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingObject | ( | $a_starting_object | ) |
Sets the starting object.
public
int |
Definition at line 97 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingPoint | ( | $a_starting_point | ) |
Sets the starting point.
public
int |
Definition at line 75 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::update | ( | ) |
update starting point
Definition at line 372 of file class.ilStartingPoint.php.
References $DIC, $ilDB, getCalendarPeriod(), getCalendarView(), getPosition(), getRuleOptions(), getRuleType(), getStartingObject(), getStartingPoint(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
protected |
Definition at line 29 of file class.ilStartingPoint.php.
Referenced by getCalendarPeriod(), and setCalendarPeriod().
|
protected |
Definition at line 28 of file class.ilStartingPoint.php.
Referenced by getCalendarView(), and setCalendarView().
|
protected |
Definition at line 27 of file class.ilStartingPoint.php.
Referenced by saveOrder().
|
protected |
Definition at line 26 of file class.ilStartingPoint.php.
Referenced by getRuleOptions().
|
protected |
Definition at line 25 of file class.ilStartingPoint.php.
Referenced by getRuleType().
|
protected |
Definition at line 23 of file class.ilStartingPoint.php.
Referenced by getStartingObject().
|
protected |
Definition at line 22 of file class.ilStartingPoint.php.
Referenced by getStartingPoint().
|
protected |
Definition at line 24 of file class.ilStartingPoint.php.
Referenced by getPosition().
const ilStartingPoint::FALLBACK_RULE = 1 |
Definition at line 18 of file class.ilStartingPoint.php.
const ilStartingPoint::ORDER_POSITION_MAX = 9999 |
Definition at line 15 of file class.ilStartingPoint.php.
const ilStartingPoint::ORDER_POSITION_MIN = 0 |
Definition at line 14 of file class.ilStartingPoint.php.
const ilStartingPoint::ROLE_BASED = 2 |
Definition at line 19 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 20 of file class.ilStartingPoint.php.