SloodleControllerRepresents a Sloodle Controller, including data such as prim password.
Located in /lib/controller.php (line 25)
int|bool
register_object
(string $uuid, string $name, SloodleUser $user, string $password, [string $type = ''], [int $timestamp = null])
int|bool
register_unauth_object
(string $uuid, string $name, string $password, [string $type = ''], [int $timestamp = null])
object
$cm
= null (line 35)
Internal for Moodle only - course module instance.
Corresponds to one record from the Moodle 'course_modules' table.
object
$sloodle_controller_instance
= null (line 51)
Internal only - Sloodle Controller instance database object.
Corresponds to one record from the Moodle 'sloodle_controller' table.
object
$sloodle_module_instance
= null (line 43)
Internal only - Sloodle module instance database object.
Corresponds to one record from the Moodle 'sloodle' table.
Authorises an otherwise unauthorised active object against the given user and the current controller.
(NOTE: the object must previously have been registered using register_object()). Must not be called statically.
Checks if the specified object is authorised for this controller with the given password.
Gets the ID of the user who authorised the specified object.
Gets the identifier for controller (unique among all Sloodle controlers - may be the same as get_id() in some environments
Gets the identifier of the course this controller belongs to.
Gets the time at which this controller was created.
Gets the time at which this controller was last modified.
Gets data about an active object.
Gets an array of object configuration settings.
(Can be called statically).
Determines whether or not this controller is available (i.e. not hidden).
Note: this is separate from being enabled or disabled.
Loads data from the database.
Note: even if the function fails, it may still have overwritten some or all existing data in the object.
Updates the last active timer on an object.
(Cannot be called statically... object must be authorised for this controller).
Registers a new active object (or renew an existing authorisation) with this controller.
Registers a new unauthorised object.
(Can be called statically). Creates a new active object entry, not linked to any user or controller.
Removes an active object and all its related items.
Sets the intro description of this controller.
Sets the name of this controller.
Sets the prim password of this controller.
Also checks for validity before storing.
Updates the type of a given active object to the specified type.
Updates the currently loaded entry in the database.
Note: the data *must* have been previously loaded using load_from_db(). This function cannot be used to create new entries.
Documentation generated on Mon, 07 Jul 2008 12:32:19 +0100 by phpDocumentor 1.4.0