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

Public Member Functions

 __construct ($name, $datatype, $desc, $desc2='', $default=null)
 
 initialise ()
 
 get_fromHeader ($prefix='')
 
 get_fromArray ($data=array())
 
 get_databaseValue ($language=null)
 
 get_exportedValue ()
 
- Public Member Functions inherited from MLDatabaseItem
 get_databaseDescription ()
 
 get_defaultValue ()
 
 check_value ($type=null, $default=null)
 
- Public Member Functions inherited from ModuleLibraryItem
 get_valueFromHeader ($name)
 
 get_dateFromHeader ($name)
 
 parse_PHPTags ($value)
 

Public Attributes

 $value = array()
 Overwrite MLDatabaseItem value, is now an array of localised values. More...
 
- Public Attributes inherited from MLDatabaseItem
 $datatype
 Item data type, can be text / etext / int / float / date / password / list. More...
 
 $datadesc
 Item data description (database type compatible with MySQL). More...
 
 $datadesc2
 Secondary information of item data description. 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

MLDatabaseLocalizedItem 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()

MLDatabaseLocalizedItem::__construct (   $name,
  $datatype,
  $desc,
  $desc2 = '',
  $default = null 
)

Class constructor.

Parameters
string$name
string$datatype
string$desc
mixed$desc2
mixed$default
Returns
void

Reimplemented from MLDatabaseItem.

Member Function Documentation

◆ initialise()

MLDatabaseLocalizedItem::initialise ( )

Initialise object with default value.

Returns
void

Reimplemented from MLDatabaseItem.

◆ get_fromHeader()

MLDatabaseLocalizedItem::get_fromHeader (   $prefix = '')

Load object value from header.

Parameters
string$prefix
Returns
void

Reimplemented from MLDatabaseItem.

◆ get_fromArray()

MLDatabaseLocalizedItem::get_fromArray (   $data = array())

Load object values from array.

Parameters
array$data
Returns
void

Reimplemented from MLDatabaseItem.

◆ get_databaseValue()

MLDatabaseLocalizedItem::get_databaseValue (   $language = null)

Return value optimised for database.

Parameters
string$language
Returns
void

Reimplemented from MLDatabaseItem.

◆ get_exportedValue()

MLDatabaseLocalizedItem::get_exportedValue ( )

Return localised values as structured array name => value.

Returns
array

Reimplemented from MLDatabaseItem.

Member Data Documentation

◆ $value

array MLDatabaseLocalizedItem::$value = array()

Overwrite MLDatabaseItem value, is now an array of localised values.


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