| 
| static  | findLatestPages ($course_id) | 
|   | 
| static  | findLatestPage ($course_id, $keyword) | 
|   | 
| static  | getStartPage ($course_id) | 
|   | 
| static  | exportUserData (StoredUserData $storage) | 
|   | 
| static  | tableScheme ($db_table) | 
|   | 
| static  | expireTableScheme () | 
|   | 
| static  | find ($id) | 
|   | 
| 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 ($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) | 
|   | 
|   | registerCallback ($types, $cb) | 
|   | 
|   | unregisterCallback ($types, $cb) | 
|   | 
|   | cbAutoIncrementColumn ($type) | 
|   | 
|   | cbAutoKeyCreation () | 
|   | 
|   | cbNotificationMapper ($cb_type) | 
|   | 
|   | cbAfterInitialize ($cb_type) | 
|   | 
|   | setSerializedValue ($field, $value) | 
|   | 
|   | setI18nValue ($field, $value) | 
|   | 
|   | cbI18N ($type) | 
|   | 
|   | $content = [] | 
|   | 
|   | $content_db = [] | 
|   | 
|   | $is_new = true | 
|   | 
|   | $is_deleted = false | 
|   | 
|   | $db_table = '' | 
|   | 
|   | $db_fields = null | 
|   | 
|   | $pk = null | 
|   | 
|   | $default_values = [] | 
|   | 
|   | $serialized_fields = [] | 
|   | 
|   | $alias_fields = [] | 
|   | 
|   | $i18n_fields = [] | 
|   | 
|   | $additional_fields = [] | 
|   | 
|   | $relations = [] | 
|   | 
|   | $has_many = [] | 
|   | 
|   | $has_one = [] | 
|   | 
|   | $belongs_to = [] | 
|   | 
|   | $has_and_belongs_to_many = [] | 
|   | 
|   | $registered_callbacks = [] | 
|   | 
|   | $known_slots = [] | 
|   | 
|   | $notification_map = [] | 
|   | 
|   | $additional_data = [] | 
|   | 
|   | $getter_setter_map = [] | 
|   | 
| static  | $config = [] | 
|   | 
| static  | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] | 
|   | 
◆ configure()
  
  
      
        
          | static configure  | 
          ( | 
            | 
          $config = [] | ) | 
           | 
         
       
   | 
  
staticprotected   | 
  
 
Configures the model 
- Parameters
 - 
  
    | array | $config | Configuration  | 
  
   
Reimplemented from SimpleORMap.
 
 
◆ exportUserData()
  
  
      
        
          | static exportUserData  | 
          ( | 
          StoredUserData  | 
          $storage | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
- Parameters
 - 
  
    | StoredUserData | $storage | object to store data into  | 
  
   
 
 
◆ findLatestPage()
  
  
      
        
          | 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 
 
 
 
◆ findLatestPages()
  
  
      
        
          | static findLatestPages  | 
          ( | 
            | 
          $course_id | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Finds all latest versions of all pages for the given course. 
- Parameters
 - 
  
  
 
- Returns
 - SimpleCollection of all pages 
 
 
 
◆ getStartPage()
  
  
      
        
          | 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 
 
 
 
◆ isCreatableBy()
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 
 
- Todo:
 - this method is kinda bogus as an instance method 
 
 
 
◆ isEditableBy()
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 
 
 
 
◆ isLatestVersion()
Returns whether this version of this page is the latest version availabe. 
- Returns
 - boolean 
 
 
 
◆ isVisibleTo()
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 
 
 
 
The documentation for this class was generated from the following file: