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

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
 __construct ($name, $folder, $path, $default='')
 
 initialise ()
 
 get ($_libObjId)
 
 save ($_libObjId, $_libName='Generic Content')
 
 delete ()
 
 reset ()
 
 install ()
 
 uninstall ()
 
 get_fromHeader ($prefix='')
 
 get_exportedValue ()
 
- 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...
 

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

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

Class constructor.

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

Member Function Documentation

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

Load object value.

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

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

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

Load object value from header.

Parameters
string$prefix
Returns
void
MLTextLocalizedItem::initialise ( )

Initialise object with default value.

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

Save text files.

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

Member Data Documentation

array MLTextLocalizedItem::$value = array()

Item current values.


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