|
static | findByName ($range_id, $name) |
|
static | getStartPage ($range_id) |
|
static | exportUserData (StoredUserData $storage) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | exists ($id) |
|
static | countBySql ($sql='1', $params=[]) |
|
static | create ($data) |
|
static | build ($data, $is_new=true) |
|
static | buildExisting ($data) |
|
static | import ($data) |
|
static | findBySQL ($sql, $params=[]) |
|
static | findOneBySQL ($where, $params=[]) |
|
static | findThru ($foreign_key_value, $options) |
|
static | findEachBySQL ($callable, $sql, $params=[]) |
|
static | findMany ($pks=[], $order='', $order_params=[]) |
|
static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | findAndMapBySQL ($callable, $where, $params=[]) |
|
static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | deleteBySQL ($where, $params=[]) |
|
static | toObject ($id_or_object) |
|
static | __callStatic (string $name, array $arguments) |
|
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
Configures the model
- Parameters
-
array | $config | Configuration |
◆ createVersion()
◆ exportUserData()
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
- Parameters
-
Implements PrivacyObject.
◆ findByName()
static findByName |
( |
|
$range_id, |
|
|
|
$name |
|
) |
| |
|
static |
◆ getDescendants()
Retrieve an array of all descending WikiPages (recursive).
- Returns
- WikiPage[] Array of all descendant WikiPages
◆ getOnlineUsers()
◆ getStartPage()
static getStartPage |
( |
|
$range_id | ) |
|
|
static |
Returns the start page of a wiki for a given course. The start page has the keyword 'WikiWikiWeb'.
- Parameters
-
- Returns
- WikiPage
◆ isEditable()
isEditable |
( |
?string |
$user_id = null | ) |
|
Returns whether this page is editable to the given user.
- Parameters
-
string | null | $user_id | the ID of the user |
- Returns
- boolean indicating whether the page is editable
◆ isReadable()
isReadable |
( |
?string |
$user_id = null | ) |
|
Returns whether this page is visible to the given user.
- Parameters
-
string | null | $user_id | User id |
- Returns
- boolean indicating whether the page is visible
◆ isValidAncestor()
isValidAncestor |
( |
|
$ancestor | ) |
|
Tests if a given Wikipage name (keyword) is a valid ancestor for this page.
- Parameters
-
string | $ancestor | Wikipage name to be tested to be an ancestor |
- Returns
- boolean true if ok, false if not
The documentation for this class was generated from the following file: