
Definition at line 43 of file embient.plugin.php.
Public Member Functions | |
| EmbientPlugin ($systemname) | |
| Class constructor. | |
| Init ($cfg) | |
| plugin initialisation | |
| Login ($username) | |
| Login the user to system. | |
| Logout ($username) | |
| Logout the user from target system. | |
| Add ($user) | |
| Add new user to the system. | |
| Update ($username, $user) | |
| Update user with new information. | |
| Delete ($username) | |
| Delete the user from the system. | |
Public Attributes | |
| $user | |
| System specific user info that can be directly loaded from or saved to database. | |
| $name | |
| Name of this system. | |
Protected Member Functions | |
| _Load ($username) | |
| Load user information from database into $this->user variable. | |
| _ConvertUserInfo ($embientuser, $default=true) | |
| Convert user info from common format to plugin format. | |
Protected Attributes | |
| $_common_fields | |
| list of Embient user info fields. | |
Private Attributes | |
| $_db | |
| $_mapping = array() | |
| User fields mapping. | |
|
|
Class constructor.
Definition at line 107 of file embient.plugin.php. |
|
||||||||||||
|
Convert user info from common format to plugin format. Convert system common user information to systm specific user info and load it to plugin's user info.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 231 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
Load user information from database into $this->user variable.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 212 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
Add new user to the system.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 164 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
Delete the user from the system.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 193 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
plugin initialisation Typically, the target system need to override this function with its own initialisation code, and make a call to this function to finalise the initialisation.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 129 of file embient.plugin.php. |
|
|
Login the user to system.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 140 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
Logout the user from target system.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 152 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
||||||||||||
|
Update user with new information.
Reimplemented in EmbientDrupal, and EmbientSMF. Definition at line 178 of file embient.plugin.php. Here is the call graph for this function: ![]() |
|
|
Initial value: array
(
'name',
'passwd',
'mail',
'firstname',
'lastname',
'signature',
'timezone',
)
This is the list of fileds those are common between system. It represent the information in Embient style and need to map to system specific name using plugin's _ConvertUserInfo methods. The fields are:
Definition at line 88 of file embient.plugin.php. |
|
|
Database engine used by this system Definition at line 54 of file embient.plugin.php. |
|
|
User fields mapping. Mapping table between Embient user fields, and this sytem's user fields. The array is in the format of "EmbientFieldName" => "SystemFieldName". For example: $_map = array( 'name' => 'memberName', ... Definition at line 67 of file embient.plugin.php. |
|
|
Name of this system.
Definition at line 49 of file embient.plugin.php. |
|
|
System specific user info that can be directly loaded from or saved to database.
Definition at line 46 of file embient.plugin.php. |
1.4.6-NO