Moodle  2.2.1
http://www.collinsharper.com
mnet_peer Class Reference
Inheritance diagram for mnet_peer:

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

Detailed Description

Definition at line 13 of file peer.php.


Member Function Documentation

bootstrap ( wwwroot,
pubkey = null,
application 
)

Definition at line 44 of file peer.php.

Here is the call graph for this function:

check_common_name ( key)

Definition at line 150 of file peer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

check_credentials ( key)

Definition at line 155 of file peer.php.

Here is the caller graph for this function:

commit ( )

Definition at line 180 of file peer.php.

Here is the caller graph for this function:

Definition at line 123 of file peer.php.

Here is the call graph for this function:

delete ( )

Definition at line 110 of file peer.php.

Here is the call graph for this function:

Definition at line 135 of file peer.php.

Here is the caller graph for this function:

Definition at line 129 of file peer.php.

Here is the caller graph for this function:

Definition at line 293 of file peer.php.

mnet_peer ( )

Definition at line 30 of file peer.php.

Here is the caller graph for this function:

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.

Parameters:
object$hostinfoA database record from the mnet_host table
Returns:
void

Definition at line 275 of file peer.php.

Here is the caller graph for this function:

set_applicationid ( applicationid)

Definition at line 218 of file peer.php.

set_id ( id)

Definition at line 244 of file peer.php.

Here is the call graph for this function:

set_name ( newname)

Definition at line 210 of file peer.php.

set_wwwroot ( wwwroot)

Load information from db about an mnet peer into this object's properties

Parameters:
string$wwwroot- address of peer whose details we want to load
Returns:
bool - indication of success or failure

Definition at line 232 of file peer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

touch ( )

Definition at line 205 of file peer.php.

Here is the call graph for this function:


Field Documentation

$applicationid = 1

Definition at line 25 of file peer.php.

$bootstrapped = false

Definition at line 28 of file peer.php.

$error = array()

Definition at line 27 of file peer.php.

$force_theme = 0

Definition at line 23 of file peer.php.

$id = 0

Definition at line 15 of file peer.php.

$ip_address = ''

Definition at line 17 of file peer.php.

$keypair = array()

Definition at line 26 of file peer.php.

$last_connect_time = 0

Definition at line 21 of file peer.php.

$last_log_id = 0

Definition at line 22 of file peer.php.

$name = ''

Definition at line 18 of file peer.php.

$public_key = ''

Definition at line 19 of file peer.php.

$public_key_expires = 0

Definition at line 20 of file peer.php.

$theme = ''

Definition at line 24 of file peer.php.

$wwwroot = ''

Definition at line 16 of file peer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations