ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
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 | 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 | |
Private Member Functions | |
setData ($a_id) | |
Set data for the starting point. More... | |
Class ilStartingPoint.
Definition at line 13 of file class.ilStartingPoint.php.
ilStartingPoint::__construct | ( | $a_id = 0 | ) |
Constructor.
a_id | public |
Definition at line 36 of file class.ilStartingPoint.php.
References setData().
ilStartingPoint::delete | ( | ) |
|
static |
Get id and title of the roles without starting points.
Definition at line 232 of file class.ilStartingPoint.php.
References array.
Referenced by ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\startingPoints().
ilStartingPoint::getMaxPosition | ( | ) |
ilStartingPoint::getPosition | ( | ) |
Gets the starting point position.
public
Definition at line 126 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 205 of file class.ilStartingPoint.php.
References $ilDB, $options, $query, $res, and array.
Referenced by ilUserUtil\getStartingPointAsUrl().
ilStartingPoint::getRuleOptions | ( | ) |
Gets the rule options.
public
Definition at line 171 of file class.ilStartingPoint.php.
References $rule_options.
Referenced by save(), and update().
ilStartingPoint::getRuleType | ( | ) |
Gets the rule type.
public
Definition at line 148 of file class.ilStartingPoint.php.
References $rule_type.
Referenced by save(), and update().
ilStartingPoint::getStartingObject | ( | ) |
Gets the starting object.
public
Definition at line 104 of file class.ilStartingPoint.php.
References $starting_object.
Referenced by save(), and update().
ilStartingPoint::getStartingPoint | ( | ) |
Gets the starting point.
public
Definition at line 82 of file class.ilStartingPoint.php.
References $starting_point.
Referenced by save(), and update().
|
static |
Get all the starting points in database.
Definition at line 180 of file class.ilStartingPoint.php.
References $ilDB, $query, $res, and array.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
|
static |
$a_items |
Definition at line 343 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
ilStartingPoint::save | ( | ) |
insert starting point into database
Definition at line 264 of file class.ilStartingPoint.php.
References $ilDB, array, getMaxPosition(), getRuleOptions(), getRuleType(), getStartingObject(), and getStartingPoint().
ilStartingPoint::saveOrder | ( | $a_items | ) |
Save all starting point positions.
Ordering values with increment +10
$a_items |
Definition at line 364 of file class.ilStartingPoint.php.
|
private |
Set data for the starting point.
$a_id | integer starting point id |
Definition at line 49 of file class.ilStartingPoint.php.
References $ilDB, $query, $res, setPosition(), setRuleOptions(), setRuleType(), setStartingObject(), and setStartingPoint().
Referenced by __construct().
ilStartingPoint::setPosition | ( | $a_starting_position | ) |
Sets the starting position.
public
int |
Definition at line 115 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleOptions | ( | $a_rule_options | ) |
Sets rule type options.
public
int |
Definition at line 159 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleType | ( | $a_rule_type | ) |
Sets rule type.
public
int |
Definition at line 137 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingObject | ( | $a_starting_object | ) |
Sets the starting object.
public
int |
Definition at line 93 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingPoint | ( | $a_starting_point | ) |
Sets the starting point.
public
int |
Definition at line 71 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::update | ( | ) |
update starting point
Definition at line 292 of file class.ilStartingPoint.php.
References $ilDB, array, getPosition(), getRuleOptions(), getRuleType(), getStartingObject(), and getStartingPoint().
|
protected |
Definition at line 29 of file class.ilStartingPoint.php.
Referenced by saveOrder().
|
protected |
Definition at line 28 of file class.ilStartingPoint.php.
Referenced by getRuleOptions().
|
protected |
Definition at line 27 of file class.ilStartingPoint.php.
Referenced by getRuleType().
|
protected |
Definition at line 25 of file class.ilStartingPoint.php.
Referenced by getStartingObject().
|
protected |
Definition at line 24 of file class.ilStartingPoint.php.
Referenced by getStartingPoint().
|
protected |
Definition at line 26 of file class.ilStartingPoint.php.
Referenced by getPosition().
const ilStartingPoint::FALLBACK_RULE = 1 |
Definition at line 20 of file class.ilStartingPoint.php.
const ilStartingPoint::ORDER_POSITION_MAX = 9999 |
Definition at line 17 of file class.ilStartingPoint.php.
const ilStartingPoint::ORDER_POSITION_MIN = 0 |
Definition at line 16 of file class.ilStartingPoint.php.
const ilStartingPoint::ROLE_BASED = 2 |
const ilStartingPoint::USER_SELECTION_RULE = 3 |
Definition at line 22 of file class.ilStartingPoint.php.