class DocType extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
int $id ID of the document-type
string $name Name of the document-type
string $module
string $controller The specified controller
string $action The specified action
string $template The specified template
string $type Type, must be one of the following: page,snippet,email
int $priority
int $creationDate
int $modificationDate
bool $legacy

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 DocType
getById(int $id)

Static helper to retrieve an instance of Document\DocType by the given ID

static DocType
create()

Shortcut to quickly create a new instance

string
getAction()

No description

string
getController()

No description

int
getId()

No description

string
getName()

No description

string
getTemplate()

No description

$this
setAction(string $action)

No description

$this
setController(string $controller)

No description

$this
setId(int $id)

No description

$this
setName(string $name)

No description

$this
setTemplate(string $template)

No description

string
getType()

No description

$this
setType(string $type)

No description

$this
setPriority(int $priority)

No description

int
getPriority()

No description

$this
setModule($module)

No description

string
getModule()

No description

$this
setModificationDate($modificationDate)

No description

int
getModificationDate()

No description

$this
setCreationDate($creationDate)

No description

int
getCreationDate()

No description

bool
isLegacy()

No description

bool
getLegacy()

No description

setLegacy(bool $legacy)

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 DocType getById(int $id)

Static helper to retrieve an instance of Document\DocType by the given ID

Parameters

int $id

Return Value

DocType

static DocType create()

Shortcut to quickly create a new instance

Return Value

DocType

string getAction()

Return Value

string

string getController()

Return Value

string

int getId()

Return Value

int

string getName()

Return Value

string

string getTemplate()

Return Value

string

$this setAction(string $action)

Parameters

string $action

Return Value

$this

$this setController(string $controller)

Parameters

string $controller

Return Value

$this

$this setId(int $id)

Parameters

int $id

Return Value

$this

$this setName(string $name)

Parameters

string $name

Return Value

$this

$this setTemplate(string $template)

Parameters

string $template

Return Value

$this

string getType()

Return Value

string

$this setType(string $type)

Parameters

string $type

Return Value

$this

$this setPriority(int $priority)

Parameters

int $priority

Return Value

$this

int getPriority()

Return Value

int

$this setModule($module)

Parameters

$module

Return Value

$this

string getModule()

Return Value

string

$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

bool isLegacy()

Return Value

bool

bool getLegacy()

Return Value

bool

setLegacy(bool $legacy)

Parameters

bool $legacy