
Public Member Functions | |
| expunge ($pMultisiteId=NULL) | |
| expungePreferences ($pMultisiteId=NULL) | |
| expungeRestrictions ($pMultisiteId, $pContentId=NULL) | |
| getMultisites ($pMultisiteId=NULL, $pContentId=NULL) | |
| insertRestriction (&$pParamHash) | |
| load () | |
| Multisites () | |
| store (&$pParamHash) | |
| verify (&$pParamHash) | |
| verifyRestrictions (&$pParamHash) | |
Public Attributes | |
| $mMultisiteId | |
| $mPrefs | |
Definition at line 15 of file Multisites.php.
| Multisites::expunge | ( | $ | pMultisiteId = NULL |
) |
remove server from db
| $pMultisiteId | is the id of the server we need to delete public |
Definition at line 189 of file Multisites.php.
References $query, $ret, expungePreferences(), expungeRestrictions(), FALSE, mDb, and BitBase::verifyId().
Here is the call graph for this function:

| Multisites::expungePreferences | ( | $ | pMultisiteId = NULL |
) |
remove all preferences associated with a given server
| $pMultisiteId | is the id of the server we need to delete private |
Definition at line 226 of file Multisites.php.
References $query, $ret, FALSE, mDb, and BitBase::verifyId().
Referenced by expunge(), and store().
Here is the call graph for this function:

| Multisites::expungeRestrictions | ( | $ | pMultisiteId, | |
| $ | pContentId = NULL | |||
| ) |
remove restrictions by multisite_id from db
| $pMultisiteId | public |
Definition at line 206 of file Multisites.php.
References $query, $ret, FALSE, mDb, and BitBase::verifyId().
Referenced by expunge().
Here is the call graph for this function:

| Multisites::getMultisites | ( | $ | pMultisiteId = NULL, |
|
| $ | pContentId = NULL | |||
| ) |
Get the list of servers and their preferences
| if | $pMultisiteId is set, it only gets specified server | |
| if | $pContentId is set, it selects multisites selected for the specfied content |
Definition at line 59 of file Multisites.php.
References $query, $res, $result, $ret, mDb, and BitBase::verifyId().
Here is the call graph for this function:

| Multisites::insertRestriction | ( | &$ | pParamHash | ) |
Store content restriction
| $pParamHash | an array of restrictions to be stored. | |
| $pParamHash[multisite_id] | The id of the site to restrict to | |
| $pParamHash[content_id] | The id of the content to restrict |
Definition at line 243 of file Multisites.php.
References $item, $pParamHash, $result, mDb, and verifyRestrictions().
Here is the call graph for this function:

| Multisites::load | ( | ) |
Load the currently active domain data from the db
Definition at line 33 of file Multisites.php.
References $_SERVER, $query, $res, $result, mDb, mInfo, mPrefs, and BitBase::verifyId().
Referenced by Multisites(), and store().
Here is the call graph for this function:

| Multisites::Multisites | ( | ) |
Initialisation of this class
Definition at line 25 of file Multisites.php.
References BitBase::BitBase(), and load().
Here is the call graph for this function:

| Multisites::store | ( | &$ | pParamHash | ) |
Store / Update server data
| array | pParams hash of values that will be used to store the page |
Definition at line 113 of file Multisites.php.
References $pParamHash, $result, expungePreferences(), load(), mDb, verify(), and BitBase::verifyId().
Here is the call graph for this function:

| Multisites::verify | ( | &$ | pParamHash | ) |
Make sure the data is safe to store
| array | pParams reference to hash of values that will be used to store the page, they will be modified where necessary |
Definition at line 145 of file Multisites.php.
References $pParamHash, $query, $result, description, mDb, and BitBase::verifyId().
Referenced by store().
Here is the call graph for this function:

| Multisites::verifyRestrictions | ( | &$ | pParamHash | ) |
verify, clean up and prepare data to be stored
| $pParamHash | all information that is being stored. will update $pParamHash by reference with fixed array of items |
Definition at line 262 of file Multisites.php.
References $item, $pParamHash, $tmp, tra(), and BitBase::verifyId().
Referenced by insertRestriction().
Here is the call graph for this function:

| Multisites::$mMultisiteId |
id of the currently active domain
Definition at line 19 of file Multisites.php.
| Multisites::$mPrefs |
Definition at line 20 of file Multisites.php.
1.5.2