|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilStartingPoint. More...
Collaboration diagram for ilStartingPoint: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 | @access public |
Definition at line 36 of file class.ilStartingPoint.php.
References setData().
Here is the call graph for this function:| ilStartingPoint::delete | ( | ) |
delete starting point
Definition at line 313 of file class.ilStartingPoint.php.
|
static |
Get id and title of the roles without starting points.
Definition at line 232 of file class.ilStartingPoint.php.
References getRolesWithStartingPoint().
Referenced by ilUserStartingPointGUI\getRoleStartingPointForm(), and ilUserStartingPointGUI\startingPoints().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStartingPoint::getMaxPosition | ( | ) |
| int | $a_ass_id | assignment id |
Definition at line 326 of file class.ilStartingPoint.php.
References $ilDB, $result, and $row.
Referenced by save().
Here is the caller graph for this function:| ilStartingPoint::getPosition | ( | ) |
Gets the starting point position.
@access public
Definition at line 126 of file class.ilStartingPoint.php.
References $starting_position.
Referenced by update().
Here is the caller graph for this function:
|
static |
get array with all roles which have starting point defined.
Definition at line 205 of file class.ilStartingPoint.php.
References $ilDB, $options, $query, and $res.
Referenced by getGlobalRolesWithoutStartingPoint(), and ilUserUtil\getStartingPointAsUrl().
Here is the caller graph for this function:| ilStartingPoint::getRuleOptions | ( | ) |
Gets the rule options.
@access public
Definition at line 171 of file class.ilStartingPoint.php.
References $rule_options.
Referenced by save(), and update().
Here is the caller graph for this function:| ilStartingPoint::getRuleType | ( | ) |
Gets the rule type.
@access public
Definition at line 148 of file class.ilStartingPoint.php.
References $rule_type.
Referenced by save(), and update().
Here is the caller graph for this function:| ilStartingPoint::getStartingObject | ( | ) |
Gets the starting object.
@access public
Definition at line 104 of file class.ilStartingPoint.php.
References $starting_object.
Referenced by save(), and update().
Here is the caller graph for this function:| ilStartingPoint::getStartingPoint | ( | ) |
Gets the starting point.
@access public
Definition at line 82 of file class.ilStartingPoint.php.
References $starting_point.
Referenced by save(), and update().
Here is the caller graph for this function:
|
static |
Get all the starting points in database.
Definition at line 180 of file class.ilStartingPoint.php.
References $ilDB, $query, and $res.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
Here is the caller graph for this function:
|
static |
| $a_items |
Definition at line 343 of file class.ilStartingPoint.php.
Referenced by ilUserRoleStartingPointTableGUI\getItems().
Here is the caller graph for this function:| ilStartingPoint::save | ( | ) |
insert starting point into database
Definition at line 264 of file class.ilStartingPoint.php.
References $ilDB, getMaxPosition(), getRuleOptions(), getRuleType(), getStartingObject(), and getStartingPoint().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStartingPoint::setPosition | ( | $a_starting_position | ) |
Sets the starting position.
@access public
| int |
Definition at line 115 of file class.ilStartingPoint.php.
Referenced by setData().
Here is the caller graph for this function:| ilStartingPoint::setRuleOptions | ( | $a_rule_options | ) |
Sets rule type options.
@access public
| int |
Definition at line 159 of file class.ilStartingPoint.php.
Referenced by setData().
Here is the caller graph for this function:| ilStartingPoint::setRuleType | ( | $a_rule_type | ) |
Sets rule type.
@access public
| int |
Definition at line 137 of file class.ilStartingPoint.php.
Referenced by setData().
Here is the caller graph for this function:| ilStartingPoint::setStartingObject | ( | $a_starting_object | ) |
Sets the starting object.
@access public
| int |
Definition at line 93 of file class.ilStartingPoint.php.
Referenced by setData().
Here is the caller graph for this function:| ilStartingPoint::setStartingPoint | ( | $a_starting_point | ) |
Sets the starting point.
@access public
| int |
Definition at line 71 of file class.ilStartingPoint.php.
Referenced by setData().
Here is the caller graph for this function:| ilStartingPoint::update | ( | ) |
update starting point
Definition at line 292 of file class.ilStartingPoint.php.
References $ilDB, getPosition(), getRuleOptions(), getRuleType(), getStartingObject(), and getStartingPoint().
Here is the call graph for this function:
|
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.