Offline Server  1.6
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DomainManager Class Reference
+ Collaboration diagram for DomainManager:

Static Public Member Functions

static getDomains ()
 
static createDomain ($reference)
 

Detailed Description

Definition at line 17 of file Class.DomainManager.php.

Member Function Documentation

static createDomain (   $reference)
static

create a new domain

$domain=DomainManager::createDomain("myDomain");
$err =$domain->addFamily("TST_ARTICLE");
$err.=$domain->addUserMember("john.doe");
$err.=$domain->insertUserDocument("1254","john.doe");
Exceptions
Exceptionif no habilities or if reference is already set by another
OfflineExceptionCode::referenceExists,OfflineExceptionCode::createForbidden
Returns
_OFFLINEDOMAIN document

Definition at line 77 of file Class.DomainManager.php.

static getDomains ( )
static

List all domain availables by current user

foreach ($domains as $domain) {
print $domain->getTitle()."\n";
}
Returns
DocumentList search results

Definition at line 39 of file Class.DomainManager.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase