class Item extends AbstractModel (View source)

Properties

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

$this
setValues(array $data = array())

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

void
__clone()

No description

array
getObjectVars()

returns object values without the dao

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($user = null)

No description

void
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

at line line 30
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

$this setValues(array $data = array())

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

void __clone()

Return Value

void

array getObjectVars()

returns object values without the dao

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

at line line 78
static create(ElementInterface $element, User $user)

Parameters

ElementInterface $element
User $user

at line line 90
static Item getById($id)

Parameters

$id

Return Value

Item

at line line 101
restore($user = null)

Parameters

$user

at line line 139
void save(User $user = null)

Parameters

User $user

Return Value

void

at line line 192
delete()

at line line 210
loadChilds(ElementInterface $element)

Parameters

ElementInterface $element

at line line 245
restoreChilds(ElementInterface $element)

Parameters

ElementInterface $element

at line line 278
string getStoreageFile()

Return Value

string

at line line 287
string getStorageFileBinary($element)

Parameters

$element

Return Value

string

at line line 295
int getId()

Return Value

int

at line line 304
$this setId($id)

Parameters

$id

Return Value

$this

at line line 314
string getPath()

Return Value

string

at line line 323
$this setPath($path)

Parameters

$path

Return Value

$this

at line line 333
string getType()

Return Value

string

at line line 342
$this setType($type)

Parameters

$type

Return Value

$this

at line line 352
string getSubtype()

Return Value

string

at line line 361
$this setSubtype($subtype)

Parameters

$subtype

Return Value

$this

at line line 371
int getAmount()

Return Value

int

at line line 380
$this setAmount($amount)

Parameters

$amount

Return Value

$this

at line line 390
int getDate()

Return Value

int

at line line 399
$this setDate($date)

Parameters

$date

Return Value

$this

at line line 409
ElementInterface getElement()

Return Value

ElementInterface

at line line 418
$this setElement($element)

Parameters

$element

Return Value

$this

at line line 429
$this setDeletedby($username)

Parameters

$username

Return Value

$this

at line line 439
string getDeletedby()

Return Value

string