oxField Class Reference

Collaboration diagram for oxField:
[legend]

List of all members.


Detailed Description

Database field description object.

Definition at line 7 of file oxfield.php.


Public Member Functions

 __construct ($value=null, $type=self::T_TEXT)
 __isset ($sName)
 __get ($sName)
 __toString ()
 convertToFormattedDbDate ()
 convertToPseudoHtml ()
 setValue ($value=null, $type=self::T_TEXT)
 getRawValue ()

Public Attributes

const T_TEXT = 1
const T_RAW = 2

Protected Member Functions

 _initValue ($value=null, $type=self::T_TEXT)

Constructor & Destructor Documentation

oxField.__construct ( value = null,
type = self::T_TEXT 
)

Constructor Initial value assigment is coded here by not calling a function is for performance because oxField is created MANY times and even a function call matters

Parameters:
mixed $value Field value
int $type Value type
Returns:
null

Definition at line 22 of file oxfield.php.


Member Function Documentation

oxField.__isset ( sName  ) 

Checks if $name is set

Parameters:
string $sName Variable name
Returns:
boolean

Definition at line 44 of file oxfield.php.

oxField.__get ( sName  ) 

Magic getter

Parameters:
string $sName Variable name
Returns:
string | null

Definition at line 63 of file oxfield.php.

oxField.__toString (  ) 

TODO: remove this

Returns:
unknown

Definition at line 89 of file oxfield.php.

oxField.convertToFormattedDbDate (  ) 

Converts to formatted db date

Returns:
null

Definition at line 99 of file oxfield.php.

oxField.convertToPseudoHtml (  ) 

Converts to pseudo html - new lines to
tags

Returns:
null

Definition at line 109 of file oxfield.php.

oxField._initValue ( value = null,
type = self::T_TEXT 
) [protected]

Initila field value

Parameters:
mixed $value Field value
int $type Value type
Returns:
null

Definition at line 122 of file oxfield.php.

oxField.setValue ( value = null,
type = self::T_TEXT 
)

Sets field value and type

Parameters:
mixed $value Field value
int $type Value type
Returns:
null

Definition at line 142 of file oxfield.php.

oxField.getRawValue (  ) 

Return raw value

Returns:
string

Definition at line 154 of file oxfield.php.


Member Data Documentation

const oxField.T_TEXT = 1

Definition at line 9 of file oxfield.php.

const oxField.T_RAW = 2

Definition at line 10 of file oxfield.php.


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

Generated on Thu Dec 4 12:05:26 2008 for OXID eShop CE by  doxygen 1.5.5