Maslosoft Mangan API
Class TrashItem
TrashItem
- Maslosoft\Mangan\EmbeddedDocument implements Maslosoft\Mangan\Interfaces\ActiveDocumentInterface uses Maslosoft\Mangan\Traits\I18NAbleTrait, Maslosoft\Mangan\Traits\OwneredTrait, Maslosoft\Mangan\Traits\ScenariosTrait, Maslosoft\Mangan\Traits\ValidatableTrait
-
Maslosoft\Mangan\Document
implements
Maslosoft\Mangan\Interfaces\ActiveRecordInterface
uses
Maslosoft\Mangan\Traits\EntityManagerTrait,
Maslosoft\Mangan\Traits\FinderTrait,
Maslosoft\Mangan\Traits\CollectionNameTrait,
Maslosoft\Mangan\Traits\WithCriteriaTrait
-
Maslosoft\Mangan\Model\TrashItem
implements
Maslosoft\Mangan\Interfaces\TrashInterface
uses
Maslosoft\Mangan\Traits\Model\TrashableTrait
Direct known subclasses
Label('trashed: item')
Author: Piotr
Located at Model/TrashItem.php
Methods summary
public
string
|
#
getCollectionName( )
This method must return collection name for use with this model. By default it uses full class name, with slashes replaced by dots. |
public
integer
|
|
public
|
Methods inherited from Maslosoft\Mangan\Document
Methods inherited from Maslosoft\Mangan\Interfaces\FinderInterface
count(),
countByAttributes(),
exists(),
find(),
findAll(),
findAllByAttributes(),
findAllByPk(),
findByAttributes(),
findByPk(),
withCursor()
Methods inherited from Maslosoft\Mangan\Interfaces\EntityManagerInterface
delete(),
deleteAll(),
deleteAllByPk(),
deleteByPk(),
deleteOne(),
getCollection(),
insert(),
refresh(),
replace(),
save(),
update(),
updateAll(),
updateOne(),
upsert()
Methods inherited from Maslosoft\Mangan\Interfaces\WithCriteriaInterface
Methods inherited from Maslosoft\Mangan\Interfaces\ValidatableInterface
Methods inherited from Maslosoft\Mangan\Interfaces\ScenariosInterface
Methods inherited from Maslosoft\Mangan\Interfaces\OwneredInterface
Methods inherited from Maslosoft\Mangan\Interfaces\InternationalInterface
getDefaultLanguage(),
getLang(),
getLanguages(),
getRawI18N(),
setDefaultLanguage(),
setLang(),
setLanguages(),
setRawI18N()
Methods used from Maslosoft\Mangan\Traits\Model\TrashableTrait
Methods used from Maslosoft\Mangan\Traits\EntityManagerTrait
delete(),
deleteAll(),
deleteAllByPk(),
deleteByPk(),
deleteOne(),
getCollection(),
insert(),
refresh(),
replace(),
save(),
update(),
updateAll(),
updateOne(),
upsert()
Methods used from Maslosoft\Mangan\Traits\FinderTrait
count(),
countByAttributes(),
exists(),
find(),
findAll(),
findAllByAttributes(),
findAllByPk(),
findByAttributes(),
findByPk(),
withCursor()
Methods used from Maslosoft\Mangan\Traits\WithCriteriaTrait
Methods used from Maslosoft\Mangan\Traits\I18NAbleTrait
getDefaultLanguage(),
getLang(),
getLanguages(),
getRawI18N(),
setDefaultLanguage(),
setLang(),
setLanguages(),
setRawI18N()
Methods used from Maslosoft\Mangan\Traits\OwneredTrait
Methods used from Maslosoft\Mangan\Traits\ScenariosTrait
Methods used from Maslosoft\Mangan\Traits\ValidatableTrait
Constants summary
Constants inherited from Maslosoft\Mangan\Interfaces\FinderInterface
EventAfterCount,
EventAfterExists,
EventAfterFind,
EventBeforeCount,
EventBeforeExists,
EventBeforeFind
Constants inherited from Maslosoft\Mangan\Interfaces\EntityManagerInterface
EventAfterDelete,
EventAfterInsert,
EventAfterSave,
EventAfterUpdate,
EventBeforeDelete,
EventBeforeInsert,
EventBeforeSave,
EventBeforeUpdate
Constants inherited from Maslosoft\Mangan\Interfaces\ValidatableInterface
Constants inherited from Maslosoft\Mangan\Interfaces\ScenariosInterface
Constants inherited from Maslosoft\Mangan\Interfaces\InternationalInterface
EventAfterLangChange,
EventAfterLanguagesSet,
EventBeforeLangChange,
EventBeforeLanguagesSet
Constants inherited from Maslosoft\Mangan\Interfaces\TrashInterface
EventAfterRestore,
EventAfterTrash,
EventBeforeRestore,
EventBeforeTrash,
ScenarioRestore,
ScenarioTrash
Properties summary
public
string
|
$name
Element name |
#
''
|
public
string
|
$type
Type of trashed item |
#
''
|
public
MongoDate
|
$createDate
When it was trashed. |
#
''
|