Maslosoft Mangan API
Class File
Class for storing embedded files
- 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\Model\File
Direct known subclasses
Methods summary
public
|
|
public
|
|
public
|
|
public
MongoGridFSFile
|
|
public
|
|
public
|
|
public
|
Methods inherited from Maslosoft\Mangan\Interfaces\InternationalInterface
getDefaultLanguage(),
getLang(),
getLanguages(),
getRawI18N(),
setDefaultLanguage(),
setLang(),
setLanguages(),
setRawI18N()
Methods inherited from Maslosoft\Mangan\Interfaces\OwneredInterface
Methods inherited from Maslosoft\Mangan\Interfaces\ScenariosInterface
Methods inherited from Maslosoft\Mangan\Interfaces\ValidatableInterface
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 inherited from Maslosoft\Mangan\Interfaces\InternationalInterface
EventAfterLangChange,
EventAfterLanguagesSet,
EventBeforeLangChange,
EventBeforeLanguagesSet
Constants inherited from Maslosoft\Mangan\Interfaces\ScenariosInterface
Constants inherited from Maslosoft\Mangan\Interfaces\ValidatableInterface
Properties summary
public
string
|
$filename
NOTE: This is also in gridfs, here is added to avoid querying gridfs just to get filename |
#
''
|
public
integer
|
$size
Size in bytes NOTE: @see $filename |
#
0
|
public
string
|
$rootClass
Root document class |
#
''
|
public
MongoId
|
$rootId
Root document ID |
#
''
|
public
string
|
$contentType
NOTE: Same not as for $filename field |
#
''
|