|
static | findLatestPages ($course_id) |
|
static | findLatestPage ($course_id, $keyword) |
|
static | getStartPage ($course_id) |
|
static | exportUserData (StoredUserData $storage) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | exists ($id) |
|
static | countBySql ($sql= '1', $params=[]) |
|
static | create ($data) |
|
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 ($name, $arguments) |
|
|
const | ID_SEPARATOR = '_' |
|
static | $schemes = null |
|
| _getId ($field) |
|
| _setId ($field, $value) |
|
| _getAdditionalValueFromRelation ($field) |
|
| _setAdditionalValueFromRelation ($field, $value) |
|
| _getAdditionalValue ($field) |
|
| _setAdditionalValue ($field, $value) |
|
| parseRelationOptions ($type, $name, $options) |
|
| storeRelations ($only_these=null) |
|
| deleteRelations () |
|
| initializeContent () |
|
| applyCallbacks ($type) |
|
| cbNotificationMapper ($cb_type) |
|
| cbAfterInitialize ($cb_type) |
|
| setSerializedValue ($field, $value) |
|
| setI18nValue ($field, $value) |
|
| $content = [] |
|
| $content_db = [] |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $relations = [] |
|
| $additional_data = [] |
|
static | $config = [] |
|
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
|
static | $performs_batch_operation = false |
|
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
Configures the model
- Parameters
-
array | $config | Configuration |
static findLatestPage |
( |
|
$course_id, |
|
|
|
$keyword |
|
) |
| |
|
static |
Finds the latest version for the given course and keyword
- Parameters
-
string | $course_id | Course id |
string | $keyword | Keyword |
- Returns
- WikiPage or null
static findLatestPages |
( |
|
$course_id | ) |
|
|
static |
Finds all latest versions of all pages for the given course.
- Parameters
-
- Returns
- SimpleCollection of all pages
Retrieve an array of all descending WikiPages (recursive).
- Returns
- array Array of all descendant WikiPages
static getStartPage |
( |
|
$course_id | ) |
|
|
static |
Returns the start page of a wiki for a given course. The start page has the keyword 'WikiWikiWeb'.
- Parameters
-
- Returns
- WikiPage
Returns whether this page is creatable to the given user.
- Parameters
-
mixed | $user | User object or id |
- Returns
- boolean indicating whether the page is creatable
isDescendantOf |
( |
string |
$other_keyword | ) |
|
Returns whether this page is editable to the given user.
- Parameters
-
mixed | $user | User object or id |
- Returns
- boolean indicating whether the page is editable
Returns whether this version of this page is the latest version availabe.
- Returns
- boolean
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
Returns whether this page is visible to the given user.
- Parameters
-
mixed | $user | User object or id |
- Returns
- boolean indicating whether the page is visible
setAncestorForAllVersions |
( |
|
$ancestor | ) |
|
Sets the parent page for all versions of a Wikipage.
- Parameters
-
string | ancestor Wikipage name to be set as the parent |
The documentation for this class was generated from the following file: