CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
MLFileLocalizedItem Class Reference
Inheritance diagram for MLFileLocalizedItem:
Inheritance graph
[legend]
Collaboration diagram for MLFileLocalizedItem:
Collaboration graph
[legend]

Public Member Functions

 __construct ($name, $folder, $path, $url)
 
 initialise ()
 
 get ($_libObjId, $language=null)
 
 save ($_libObjId)
 
 delete ($_libObjId, $language=null)
 
 get_fromHeader ($prefix='')
 
 get_exportedValue ()
 
 get_uploadedFileName ($language=false)
 
 get_uploadedTempName ($language=false)
 
- Public Member Functions inherited from MLFileItem
 __construct ($name, $folder, $path, $url)
 
 initialise ()
 
 get ($_libObjId)
 
 save ($_libObjId)
 
 delete ($_libObjId)
 
 reset ()
 
 install ()
 
 uninstall ()
 
 get_fromHeader ($prefix='')
 
 get_exportedValue ()
 
 exists ($path, $filebase)
 
 get_uploadedFileName ()
 
 get_temporaryFileName ()
 
 get_folder ($_libObjId=0)
 
- Public Member Functions inherited from ModuleLibraryItem
 get_fromArray ($data)
 
 get_valueFromHeader ($name)
 
 get_dateFromHeader ($name)
 
 parse_PHPTags ($value)
 

Public Attributes

 $value = array()
 Item current values. More...
 
 $upload = array()
 Are files in upload process. More...
 
 $uploadedFileName = array()
 Files original name. More...
 
 $uploadedTempName = array()
 Files temporary name. More...
 
 $delete = array()
 Are files in delete process. More...
 
- Public Attributes inherited from MLFileItem
 $folder
 Folder repository for files. More...
 
 $path
 Folder path for files. More...
 
 $url
 Folder url for files. More...
 
 $upload = false
 Is file in upload process. More...
 
 $uploadedFileName = ''
 File original name. More...
 
 $uploadedTempName = ''
 File temporary name. More...
 
 $delete = false
 Is file in delete process. More...
 
- Public Attributes inherited from ModuleLibraryItem
 $name
 Item name. More...
 
 $default
 Item default value. More...
 
 $value
 Item current value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MLFileItem
 update_orientation ($picture='')
 
- Protected Member Functions inherited from ModuleLibraryItem
 compile_listValue ($value)
 
 uncompile_listValue ($value)
 

Detailed Description

MLFileItem class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Constructor & Destructor Documentation

MLFileLocalizedItem::__construct (   $name,
  $folder,
  $path,
  $url 
)

Class constructor.

Parameters
string$name
string$folder
string$path
string$url
Returns
void

Member Function Documentation

MLFileLocalizedItem::delete (   $_libObjId,
  $language = null 
)

Delete files.

Parameters
integer$_libObjIdthe parent object id
string$languagethe language
Returns
boolean
MLFileLocalizedItem::get (   $_libObjId,
  $language = null 
)

Load object value.

Parameters
integer$_libObjIdthe parent object id
string$languagethe language to get
Returns
boolean
MLFileLocalizedItem::get_exportedValue ( )

Return values as structured array.

Returns
array
MLFileLocalizedItem::get_fromHeader (   $prefix = '')

Load object value from header.

Parameters
string$prefix
Returns
void
MLFileLocalizedItem::get_uploadedFileName (   $language = false)

Return real file name while uploading it.

Parameters
mixed$language
Returns
string
MLFileLocalizedItem::get_uploadedTempName (   $language = false)

Return temporary file name while uploading it.

Parameters
mixed$language
Returns
string
MLFileLocalizedItem::initialise ( )

Initialise object with empty values.

Returns
void
MLFileLocalizedItem::save (   $_libObjId)

Save files.

Parameters
integer$_libObjIdthe parent object id
Returns
void

Member Data Documentation

array MLFileLocalizedItem::$delete = array()

Are files in delete process.

array MLFileLocalizedItem::$upload = array()

Are files in upload process.

array MLFileLocalizedItem::$uploadedFileName = array()

Files original name.

array MLFileLocalizedItem::$uploadedTempName = array()

Files temporary name.

array MLFileLocalizedItem::$value = array()

Item current values.


The documentation for this class was generated from the following file: