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

Public Member Functions | |
| mnet_peer () | |
| bootstrap ($wwwroot, $pubkey=null, $application) | |
| delete () | |
| count_live_sessions () | |
| delete_expired_sessions () | |
| delete_all_sessions () | |
| check_common_name ($key) | |
| check_credentials ($key) | |
| commit () | |
| touch () | |
| set_name ($newname) | |
| set_applicationid ($applicationid) | |
| set_wwwroot ($wwwroot) | |
| set_id ($id) | |
| populate ($hostinfo) | |
| get_public_key () | |
Data Fields | |
| $id = 0 | |
| $wwwroot = '' | |
| $ip_address = '' | |
| $name = '' | |
| $public_key = '' | |
| $public_key_expires = 0 | |
| $last_connect_time = 0 | |
| $last_log_id = 0 | |
| $force_theme = 0 | |
| $theme = '' | |
| $applicationid = 1 | |
| $keypair = array() | |
| $error = array() | |
| $bootstrapped = false | |
| bootstrap | ( | $ | wwwroot, |
| $ | pubkey = null, |
||
| $ | application | ||
| ) |
| check_common_name | ( | $ | key | ) |
| check_credentials | ( | $ | key | ) |
| get_public_key | ( | ) |
| populate | ( | $ | hostinfo | ) |
Several methods can be used to get an 'mnet_host' record. They all then send it to this private method to populate this object's attributes.
| object | $hostinfo | A database record from the mnet_host table |
Definition at line 275 of file peer.php.

| set_applicationid | ( | $ | applicationid | ) |
| set_wwwroot | ( | $ | wwwroot | ) |
Load information from db about an mnet peer into this object's properties
| string | $wwwroot | - address of peer whose details we want to load |
Definition at line 232 of file peer.php.

