CaMykS  1.0-20231201
Public Member Functions | Public Attributes | List of all members
MLTextLocalizedItem Class Reference
Inheritance diagram for MLTextLocalizedItem:
MLTextItem ModuleLibraryItem

Public Member Functions

 __construct ($name, $folder, $path, $default='')
 
 initialise ()
 
 get ($_libObjId, $language=null)
 
 save ($_libObjId, $_libName='Generic Content')
 
 get_fromHeader ($prefix='')
 
 get_exportedValue ()
 
- Public Member Functions inherited from MLTextItem
 get ($_libObjId)
 
 delete ()
 
 reset ()
 
 install ()
 
 uninstall ()
 
- 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...
 
- Public Attributes inherited from MLTextItem
 $folder
 Folder repository for files. More...
 
 $path
 Folder path for files. More...
 
- Public Attributes inherited from ModuleLibraryItem
 $name
 Item name. More...
 
 $default
 Item default value. More...
 
 $value
 Item current value. More...
 
 $type
 Item type. More...
 
 $datadesc
 Item data description. More...
 
 $datadesc2
 Item data description. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ModuleLibraryItem
 compile_listValue ($value)
 
 uncompile_listValue ($value)
 

Detailed Description

MLTextLocalizedItem 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

◆ __construct()

MLTextLocalizedItem::__construct (   $name,
  $folder,
  $path,
  $default = '' 
)

Class constructor.

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

Reimplemented from MLTextItem.

Member Function Documentation

◆ initialise()

MLTextLocalizedItem::initialise ( )

Initialise object with default value.

Returns
void

Reimplemented from MLTextItem.

◆ get()

MLTextLocalizedItem::get (   $_libObjId,
  $language = null 
)

Load object value.

Parameters
integer$_libObjIdthe parent object id
string$languagethe language version to get
Returns
boolean

◆ save()

MLTextLocalizedItem::save (   $_libObjId,
  $_libName = 'Generic Content' 
)

Save text files.

Parameters
integer$_libObjIdthe parent object id
string$_libNamethe file header title
Returns
boolean

Reimplemented from MLTextItem.

◆ get_fromHeader()

MLTextLocalizedItem::get_fromHeader (   $prefix = '')

Load object value from header.

Parameters
string$prefix
Returns
void

Reimplemented from MLTextItem.

◆ get_exportedValue()

MLTextLocalizedItem::get_exportedValue ( )

Return values as structured array $name => $value.

Returns
array

Reimplemented from MLTextItem.

Member Data Documentation

◆ $value

array MLTextLocalizedItem::$value = array()

Item current values.


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