CORE POS - IS4C
The CORE POS front end
Public Member Functions | Protected Attributes | List of all members
ParametersModel Class Reference
Inheritance diagram for ParametersModel:
BasicModel

Public Member Functions

 materializeValue ()
 
 store_id ()
 
 lane_id ()
 
 param_key ()
 
 param_value ()
 
 is_array ()
 
- Public Member Functions inherited from BasicModel
 db ()
 
 preferredDB ()
 
 __construct ($con)
 
 create ()
 
 createIfNeeded ($db_name)
 
 load ()
 
 reset ()
 
 getColumns ()
 
 getName ()
 
 find ($sort='', $reverse=false)
 
 delete ()
 
 save ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=False)
 
 generate ($filename)
 
 newModel ($name)
 
 getModels ()
 

Protected Attributes

 $name = "parameters"
 
 $preferred_db = 'op'
 
 $columns
 
- Protected Attributes inherited from BasicModel
 $name
 
 $columns = array()
 
 $unique = array()
 
 $meta_types
 
 $connection = false
 
 $instance = array()
 
 $preferred_db = ''
 

Additional Inherited Members

- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 
- Protected Member Functions inherited from BasicModel
 getMeta ($type, $dbms)
 
 insertRecord ()
 
 updateRecord ()
 

Member Function Documentation

ParametersModel::materializeValue ( )

Get the parameter's effective value by transforming it into an array or boolean if appropriate

Returns
[mixed] param_value as correct PHP type

Member Data Documentation

ParametersModel::$columns
protected
Initial value:
= array(
'store_id' => array('type'=>'SMALLINT', 'primary_key'=>true),
'lane_id' => array('type'=>'SMALLINT', 'primary_key'=>true),
'param_key' => array('type'=>'VARCHAR(100)', 'primary_key'=>true),
'param_value' => array('type'=>'VARCHAR(255)'),
'is_array' => array('type'=>'TINYINT'),
)

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