class Site extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
static protected Site $currentSite
int $id
array $domains
int $rootId Contains the ID to the Root-Document
Page $rootDocument
string $rootPath
string $mainDomain
string $errorDocument
bool $redirectToMainDomain
int $creationDate
int $modificationDate

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

static Site
getById(int $id)

No description

static Site
getByRootId(int $id)

No description

static mixed|Site|string
getByDomain($domain)

No description

static Site
getBy($mixed)

No description

static Site
create(array $data)

No description

static bool
isSiteRequest()

returns true if the current process/request is inside a site

static Site
getCurrentSite()

No description

static 
setCurrentSite(Site $site)

Register the current site

int
getId()

No description

array
getDomains()

No description

int
getRootId()

No description

getRootDocument()

No description

$this
setId(int $id)

No description

$this
setDomains(mixed $domains)

No description

$this
setRootId(int $rootId)

No description

$this
setRootDocument(Page $rootDocument)

No description

$this
setRootPath($path)

No description

string
getRootPath()

No description

setErrorDocument(string $errorDocument)

No description

string
getErrorDocument()

No description

setMainDomain(string $mainDomain)

No description

string
getMainDomain()

No description

setRedirectToMainDomain(bool $redirectToMainDomain)

No description

bool
getRedirectToMainDomain()

No description

clearDependentCache()

No description

$this
setModificationDate($modificationDate)

No description

int
getModificationDate()

No description

$this
setCreationDate($creationDate)

No description

int
getCreationDate()

No description

Details

Dao getDao()

Return Value

Dao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($method, $args)

Parameters

$method
$args

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

static Site getById(int $id)

Parameters

int $id

Return Value

Site

static Site getByRootId(int $id)

Parameters

int $id

Return Value

Site

static mixed|Site|string getByDomain($domain)

Parameters

$domain

Return Value

mixed|Site|string

Exceptions

Exception

static Site getBy($mixed)

Parameters

$mixed

Return Value

Site

static Site create(array $data)

Parameters

array $data

Return Value

Site

static bool isSiteRequest()

returns true if the current process/request is inside a site

Return Value

bool

static Site getCurrentSite()

Return Value

Site

Exceptions

Exception

static setCurrentSite(Site $site)

Register the current site

Parameters

Site $site

int getId()

Return Value

int

array getDomains()

Return Value

array

int getRootId()

Return Value

int

Page getRootDocument()

Return Value

Page

$this setId(int $id)

Parameters

int $id

Return Value

$this

$this setDomains(mixed $domains)

Parameters

mixed $domains

Return Value

$this

$this setRootId(int $rootId)

Parameters

int $rootId

Return Value

$this

$this setRootDocument(Page $rootDocument)

Parameters

Page $rootDocument

Return Value

$this

$this setRootPath($path)

Parameters

$path

Return Value

$this

string getRootPath()

Return Value

string

setErrorDocument(string $errorDocument)

Parameters

string $errorDocument

string getErrorDocument()

Return Value

string

setMainDomain(string $mainDomain)

Parameters

string $mainDomain

string getMainDomain()

Return Value

string

setRedirectToMainDomain(bool $redirectToMainDomain)

Parameters

bool $redirectToMainDomain

bool getRedirectToMainDomain()

Return Value

bool

clearDependentCache()

$this setModificationDate($modificationDate)

Parameters

$modificationDate

Return Value

$this

int getModificationDate()

Return Value

int

$this setCreationDate($creationDate)

Parameters

$creationDate

Return Value

$this

int getCreationDate()

Return Value

int