class Item extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
int $id
string $path
string $type
string $subtype
int $amount
ElementInterface $element
int $date
string $deletedby

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 
create(ElementInterface $element, User $user)

No description

static Item
getById($id)

No description

restore(null $user = null)

No description

save(User $user = null)

No description

delete()

No description

loadChilds(ElementInterface $element)

No description

restoreChilds(ElementInterface $element)

No description

string
getStoreageFile()

No description

string
getStorageFileBinary($element)

No description

int
getId()

No description

$this
setId($id)

No description

string
getPath()

No description

$this
setPath($path)

No description

string
getType()

No description

$this
setType($type)

No description

string
getSubtype()

No description

$this
setSubtype($subtype)

No description

int
getAmount()

No description

$this
setAmount($amount)

No description

int
getDate()

No description

$this
setDate($date)

No description

getElement()

No description

$this
setElement($element)

No description

$this
setDeletedby($username)

No description

string
getDeletedby()

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 create(ElementInterface $element, User $user)

Parameters

ElementInterface $element
User $user

static Item getById($id)

Parameters

$id

Return Value

Item

restore(null $user = null)

Parameters

null $user

Exceptions

Exception

save(User $user = null)

Parameters

User $user

delete()

loadChilds(ElementInterface $element)

Parameters

ElementInterface $element

restoreChilds(ElementInterface $element)

Parameters

ElementInterface $element

string getStoreageFile()

Return Value

string

string getStorageFileBinary($element)

Parameters

$element

Return Value

string

int getId()

Return Value

int

$this setId($id)

Parameters

$id

Return Value

$this

string getPath()

Return Value

string

$this setPath($path)

Parameters

$path

Return Value

$this

string getType()

Return Value

string

$this setType($type)

Parameters

$type

Return Value

$this

string getSubtype()

Return Value

string

$this setSubtype($subtype)

Parameters

$subtype

Return Value

$this

int getAmount()

Return Value

int

$this setAmount($amount)

Parameters

$amount

Return Value

$this

int getDate()

Return Value

int

$this setDate($date)

Parameters

$date

Return Value

$this

ElementInterface getElement()

Return Value

ElementInterface

$this setElement($element)

Parameters

$element

Return Value

$this

$this setDeletedby($username)

Parameters

$username

Return Value

$this

string getDeletedby()

Return Value

string