|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($repository, $ticket) | |
| createStore ($address, $scheme="workspace") | |
| getStore ($address, $scheme="workspace") | |
| getStoreFromString ($value) | |
| getNode ($store, $id) | |
| getNodeFromString ($value) | |
| addNode ($node) | |
| save ($debug=false) | |
| clear () | |
| query ($store, $query, $language='lucene') | |
| getTicket () | |
| getRepository () | |
| getNamespaceMap () | |
| getStores () | |
| nextSessionId () | |
Data Fields | |
| $authenticationService | |
| $repositoryService | |
| $contentService | |
Definition at line 31 of file Session.php.
| __construct | ( | $ | repository, |
| $ | ticket | ||
| ) |
Constructor
| userName | the user name |
| ticket | the currenlty authenticated users ticket |
Definition at line 51 of file Session.php.

| addNode | ( | $ | node | ) |
Adds a new node to the session.
Definition at line 131 of file Session.php.

| clear | ( | ) |
Clears the current session by emptying the node cache.
WARNING: all unsaved changes will be lost when clearing the session.
Definition at line 184 of file Session.php.
| createStore | ( | $ | address, |
| $ | scheme = "workspace" |
||
| ) |
Creates a new store in the current respository
| $address | the address of the new store |
| $scheme | the scheme of the new store, default value of 'workspace' |
Definition at line 69 of file Session.php.
| getNamespaceMap | ( | ) |
Definition at line 243 of file Session.php.
| getNode | ( | $ | store, |
| $ | id | ||
| ) |
| getNodeFromString | ( | $ | value | ) |
Definition at line 122 of file Session.php.
| getRepository | ( | ) |
Definition at line 238 of file Session.php.
| getStore | ( | $ | address, |
| $ | scheme = "workspace" |
||
| ) |
Get the store
| $address | the address of the store |
| $scheme | the scheme of the store. The default it 'workspace' |
Definition at line 94 of file Session.php.
| getStoreFromString | ( | $ | value | ) |
Get the store from it string representation (eg: workspace://SpacesStore)
| $value | the stores string representation |
Definition at line 105 of file Session.php.
| getStores | ( | ) |
Definition at line 252 of file Session.php.
| getTicket | ( | ) |
Definition at line 233 of file Session.php.
| nextSessionId | ( | ) |
Want these methods to be package scope some how!
Definition at line 270 of file Session.php.
| query | ( | $ | store, |
| $ | query, | ||
| $ | language = 'lucene' |
||
| ) |
| save | ( | $ | debug = false | ) |
Commits all unsaved changes to the repository
Definition at line 150 of file Session.php.
| $authenticationService |
Definition at line 33 of file Session.php.
| $contentService |
Definition at line 35 of file Session.php.
| $repositoryService |
Definition at line 34 of file Session.php.