File augments FilesModel for the API.
- Class name: File
- Namespace: DieSchittigs\ContaoContentApiBundle
- Parent class: DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
private mixed $fileObj = array('id', 'uuid', 'name', 'extension', 'singleSRC', 'meta', 'size', 'filesModel')
- Visibility: private
- This property is static.
public mixed $model = null
- Visibility: public
mixed DieSchittigs\ContaoContentApiBundle\File::__construct(string $uuid, mixed $size)
constructor.
- Visibility: public
- $uuid string - <p>uuid of the FilesModel</p>
- $size mixed - <p>Object or serialized string representing the (image) size</p>
mixed DieSchittigs\ContaoContentApiBundle\File::children(string $uuid, integer $depth)
Recursively load file (directory) children.
- Visibility: private
- This method is static.
- $uuid string - <p>uuid of the FilesModel</p>
- $depth integer - <p>How deep do you want to fetch children?</p>
mixed DieSchittigs\ContaoContentApiBundle\File::get(string $path, integer $depth)
Recursively load file by path.
- Visibility: public
- This method is static.
- $path string - <p>Path of the FilesModel</p>
- $depth integer - <p>How deep do you want to fetch children?</p>
mixed DieSchittigs\ContaoContentApiBundle\ContaoJsonSerializable::toJson()
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\ContaoJsonSerializable
mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__get(string $property)
Get the value from the attached model.
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
- $property string - <p>key</p>
mixed DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel::__set(string $property, mixed $value)
Set the value in the attached model.
- Visibility: public
- This method is defined by DieSchittigs\ContaoContentApiBundle\AugmentedContaoModel
- $property string - <p>key</p>
- $value mixed - <p>value</p>