File item of Module Library Item.
More...
File item of Module Library Item.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.1
- Date
- Creation: Jul 2007
-
Modification: Sep 2023
- Copyright
- 2007 - 2023 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MLFileItem class.
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
◆ __construct()
MLFileItem::__construct |
( |
|
$name, |
|
|
|
$folder, |
|
|
|
$path, |
|
|
|
$url |
|
) |
| |
Class constructor.
- Parameters
-
string | $name | |
string | $folder | |
string | $path | |
string | $url | |
- Returns
- void
Reimplemented in MLFileLocalizedItem.
◆ initialise()
MLFileItem::initialise |
( |
| ) |
|
◆ get()
MLFileItem::get |
( |
|
$_libObjId | ) |
|
Load object value.
- Parameters
-
integer | $_libObjId | the parent object id |
- Returns
- boolean
◆ save()
MLFileItem::save |
( |
|
$_libObjId | ) |
|
Save file item.
- Parameters
-
integer | $_libObjId | the parent object id |
- Returns
- boolean
Reimplemented in MLFileLocalizedItem.
◆ delete()
MLFileItem::delete |
( |
|
$_libObjId | ) |
|
Delete file.
- Parameters
-
integer | $_libObjId | the parent object id |
- Returns
- boolean
◆ reset()
Reset file folder by deleting all files.
- Returns
- boolean
◆ install()
Install item by creating folders.
- Returns
- boolean
◆ uninstall()
MLFileItem::uninstall |
( |
| ) |
|
Uninstall item.
- Returns
- boolean
◆ get_fromHeader()
MLFileItem::get_fromHeader |
( |
|
$prefix = '' | ) |
|
◆ get_exportedValue()
MLFileItem::get_exportedValue |
( |
| ) |
|
Return item values as structured array $name => $value
- Returns
- array
Reimplemented in MLFileLocalizedItem.
◆ exists()
MLFileItem::exists |
( |
|
$path, |
|
|
|
$filebase |
|
) |
| |
Return item file existence.
- Parameters
-
string | $path | the folder path |
string | $filebase | the file name base |
- Returns
- string
◆ get_uploadedFileName()
MLFileItem::get_uploadedFileName |
( |
| ) |
|
Return real file name while uploading it.
- Returns
- string
◆ get_temporaryFileName()
MLFileItem::get_temporaryFileName |
( |
| ) |
|
Return temporary file name while uploading it
- Returns
- string
◆ get_folder()
MLFileItem::get_folder |
( |
|
$_libObjId = 0 | ) |
|
Return updated folder with parent id.
- Parameters
-
- Returns
- string
◆ update_orientation()
MLFileItem::update_orientation |
( |
|
$picture = '' | ) |
|
|
protected |
Check orientation and auto rotate picture.
- Parameters
-
- Returns
- boolean sucess
◆ $folder
string MLFileItem::$folder |
Folder repository for files.
◆ $path
◆ $url
◆ $upload
boolean MLFileItem::$upload = false |
Is file in upload process.
◆ $uploadedFileName
string MLFileItem::$uploadedFileName = '' |
◆ $uploadedTempName
string MLFileItem::$uploadedTempName = '' |
◆ $delete
boolean MLFileItem::$delete = false |
Is file in delete process.
The documentation for this class was generated from the following file: