ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 | 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 | |
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 | ( | ) |
delete starting point
Definition at line 345 of file class.ilStartingPoint.php.
References $DIC, $ilDB, and $query.
|
static |
Get id and title of the roles without starting points.
Definition at line 258 of file class.ilStartingPoint.php.
References $DIC.
Referenced by ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\startingPoints().
ilStartingPoint::getMaxPosition | ( | ) |
ilStartingPoint::getPosition | ( | ) |
Gets the starting point position.
public
Definition at line 128 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 229 of file class.ilStartingPoint.php.
References $DIC, $ilDB, PHPMailer\PHPMailer\$options, $query, and $res.
Referenced by ilUserUtil\getStartingPointAsUrl().
ilStartingPoint::getRuleOptions | ( | ) |
Gets the rule options.
public
Definition at line 173 of file class.ilStartingPoint.php.
References $rule_options.
Referenced by save(), and update().
ilStartingPoint::getRuleType | ( | ) |
Gets the rule type.
public
Definition at line 150 of file class.ilStartingPoint.php.
References $rule_type.
Referenced by save(), and update().
ilStartingPoint::getStartingObject | ( | ) |
Gets the starting object.
public
Definition at line 106 of file class.ilStartingPoint.php.
References $starting_object.
Referenced by save(), and update().
ilStartingPoint::getStartingPoint | ( | ) |
Gets the starting point.
public
Definition at line 84 of file class.ilStartingPoint.php.
References $starting_point.
Referenced by save(), and update().
|
static |
Get all the starting points in database.
Definition at line 182 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
|
static |
ilObjRole | $role |
Definition at line 209 of file class.ilStartingPoint.php.
References $data, ilObject\getId(), and ilObjectFactory\getInstanceByObjId().
Referenced by ilUserAppEventListener\handleEvent().
|
static |
$a_items |
Definition at line 379 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
ilStartingPoint::save | ( | ) |
insert starting point into database
Definition at line 292 of file class.ilStartingPoint.php.
References $DIC, $ilDB, $values, 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 395 of file class.ilStartingPoint.php.
References $DIC, $id, and $ilDB.
|
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, setPosition(), setRuleOptions(), setRuleType(), setStartingObject(), and setStartingPoint().
Referenced by __construct().
ilStartingPoint::setPosition | ( | $a_starting_position | ) |
Sets the starting position.
public
int |
Definition at line 117 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleOptions | ( | $a_rule_options | ) |
Sets rule type options.
public
int |
Definition at line 161 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setRuleType | ( | $a_rule_type | ) |
Sets rule type.
public
int |
Definition at line 139 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingObject | ( | $a_starting_object | ) |
Sets the starting object.
public
int |
Definition at line 95 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::setStartingPoint | ( | $a_starting_point | ) |
Sets the starting point.
public
int |
Definition at line 73 of file class.ilStartingPoint.php.
Referenced by setData().
ilStartingPoint::update | ( | ) |
update starting point
Definition at line 322 of file class.ilStartingPoint.php.
References $DIC, $ilDB, 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.