oxField Class Reference

Collaboration diagram for oxField:

Collaboration graph
[legend]

List of all members.


Detailed Description

Database field description object.

Definition at line 6 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 21 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 43 of file oxfield.php.

oxField.__get ( sName  ) 

Magic getter

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

Definition at line 64 of file oxfield.php.

oxField.__toString (  ) 

TODO: remove this

Returns:
unknown

Definition at line 93 of file oxfield.php.

oxField.convertToFormattedDbDate (  ) 

Converts to formatted db date

Returns:
null

Definition at line 103 of file oxfield.php.

oxField.convertToPseudoHtml (  ) 

Converts to pseudo html - new lines to
tags

Returns:
null

Definition at line 113 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 126 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 146 of file oxfield.php.

oxField.getRawValue (  ) 

Return raw value

Returns:
string

Definition at line 158 of file oxfield.php.


Member Data Documentation

const oxField.T_TEXT = 1

Definition at line 8 of file oxfield.php.

const oxField.T_RAW = 2

Definition at line 9 of file oxfield.php.


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

Generated on Tue Aug 4 09:12:55 2009 for OXID eShop CE by  doxygen 1.5.5