Class P4A_Data_Field

Description

Every DATA_SOURCE field is a DATA_FIELD.

It's used to emulate some database behaviours such as default values.
It can be considered the same as a database table's field.

Located in /p4a/objects/data_field.php (line 48)

P4A_Object
   |
   --P4A_Data_Field
Variable Summary
 mixed $alias_of
 mixed $length
 string $new_value
 mixed $sequence
 mixed $table
 string $type
 string $value
Method Summary
 void getAliasOf ()
 void getDefaultValue ()
 void getDSN ()
 void getLength ()
 mixed getNewValue ()
 mixed getSQLNewValue ()
 mixed getSQLValue ()
 void getTable ()
 string getType ()
 mixed getValue ()
 void isReadOnly ()
 void p4a_data_field (string $name)
 void setAliasOf ( $alias_of)
 void setDefaultValue ([ $value = NULL])
 void setDSN ( $DSN)
 void setLength ( $length)
 void setNewValue ( $value)
 void setReadOnly ([ $value = TRUE])
 void setSequence ([ $name = null])
 void setTable ( $table)
 void setType (string $type)
 void setValue ( $value)
Variables
mixed $alias_of = NULL (line 81)
string $default_value = NULL (line 69)

The default value for the field in new rows.

  • access: private
mixed $is_read_only = FALSE (line 78)
mixed $length = NULL (line 82)
string $new_value = NULL (line 62)

The new value of field

  • access: private
mixed $sequence = NULL (line 79)
mixed $table = NULL (line 80)
string $type = 'text' (line 76)

The default value for the field in new rows.

  • access: private
string $value = NULL (line 55)

The value of field.

  • access: private

Inherited Variables

Inherited from P4A_Object

P4A_Object::$_helpers
P4A_Object::$_id
P4A_Object::$_map_actions
P4A_Object::$_name
P4A_Object::$_objects
P4A_Object::$_parent_id
Methods
getAliasOf (line 238)
void getAliasOf ()
getDefaultValue (line 212)
void getDefaultValue ()
getDSN (line 189)
void getDSN ()
getLength (line 248)
void getLength ()
getNewValue (line 139)

Returns the new value of the data field.

  • access: public
mixed getNewValue ()
getSQLNewValue (line 149)

Returns the value of the data field for safe SQL queries.

  • access: public
mixed getSQLNewValue ()
getSQLValue (line 120)

Returns the value of the data field for safe SQL queries.

  • access: public
mixed getSQLValue ()
getTable (line 228)
void getTable ()
getType (line 169)

Returns the type of the data_field.

  • access: public
string getType ()
getValue (line 110)

Returns the value of the data field.

  • access: public
mixed getValue ()
isReadOnly (line 179)
void isReadOnly ()
p4a_data_field (line 90)

Class constructor.

Sets ID and name for the object.

  • access: private
void p4a_data_field (string $name)
  • string $name: Mnemonic identifier for the object.
setAliasOf (line 233)
void setAliasOf ( $alias_of)
  • $alias_of
setDefaultValue (line 194)
void setDefaultValue ([ $value = NULL])
  • $value
setDSN (line 184)
void setDSN ( $DSN)
  • $DSN
setLength (line 243)
void setLength ( $length)
  • $length
setNewValue (line 129)

Sets the new value of the data field.

  • access: public
void setNewValue ( $value)
  • $value
setReadOnly (line 174)
void setReadOnly ([ $value = TRUE])
  • $value
setSequence (line 203)
void setSequence ([ $name = null])
  • $name
setTable (line 223)
void setTable ( $table)
  • $table
setType (line 159)

Sets the type of the data_field.

  • access: public
void setType (string $type)
  • string $type: The type
setValue (line 99)

Sets the value of the data field.

  • access: public
void setValue ( $value)
  • $value

Inherited Methods

Inherited From P4A_Object

 P4A_Object::actionHandler()
 P4A_Object::build()
 P4A_Object::destroy()
 P4A_Object::dropIntercept()
 P4A_Object::errorHandler()
 P4A_Object::getId()
 P4A_Object::getName()
 P4A_Object::getObjectType()
 P4A_Object::getParentID()
 P4A_Object::implementMethod()
 P4A_Object::intercept()
 P4A_Object::isActionTriggered()
 P4A_Object::p4a_object()
 P4A_Object::setName()
 P4A_Object::setParentID()
 P4A_Object::void()
 P4A_Object::_loadHelper()
 P4A_Object::__call()

Documentation generated on Mon, 07 Jan 2008 11:29:14 +0100 by phpDocumentor 1.4.0