## 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.

- author: Andrea Giardina <andrea.giardina@crealabs.it>
- author: Fabrizio Balliano <fabrizio.balliano@crealabs.it>

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

    P4A_Object
       |
       --P4A_Data_Field

Variable Summary
mixed $alias_of
string $default_value
mixed $is_read_only
string $new_value
mixed $sequence
mixed $table
string $type
string $value
Method Summary
void getAliasOf ()
void getDefaultValue ()
void getDSN ()
mixed getNewValue ()
void getTable ()
string getType ()
mixed getValue ()
void isReadOnly ()
void p4a_data_field (string $name)
void setAliasOf (mixed $alias_of)
void setDefaultValue ([mixed $value = NULL])
void setDSN (mixed $DSN)
void setNewValue (mixed $value)
void setReadOnly ([mixed $value = TRUE])
void setSequence ([mixed $name = NULL])
void setTable (mixed $table)
void setType (string $type)
void setValue (mixed $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)
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::$_id
> P4A_Object::$_map_actions
> P4A_Object::$_name
> P4A_Object::$_objects
> P4A_Object::$_parent_id

Methods
getAliasOf (line 209)
void getAliasOf ()
getDefaultValue (line 187)
void getDefaultValue ()
getDSN (line 168)
void getDSN ()
getNewValue (line 128)

Returns the new value of the data field.

- access: public

mixed getNewValue ()
getTable (line 201)
void getTable ()
getType (line 148)

Returns the type of the data_field.

- access: public

string getType ()
getValue (line 109)

Returns the value of the data field.

- access: public

mixed getValue ()
isReadOnly (line 158)
void isReadOnly ()
p4a_data_field (line 89)

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 205)
void setAliasOf (mixed $alias_of)
setDefaultValue (line 173)
void setDefaultValue ([mixed $value = NULL])
setDSN (line 163)
void setDSN (mixed $DSN)
setNewValue (line 118)

Sets the new value of the data field.

- access: public

void setNewValue (mixed $value)
setReadOnly (line 153)
void setReadOnly ([mixed $value = TRUE])
setSequence (line 182)
void setSequence ([mixed $name = NULL])
setTable (line 197)
void setTable (mixed $table)
setType (line 138)

Sets the type of the data_field.

- access: public

void setType (string $type)

- string $type: The type

setValue (line 98)

Sets the value of the data field.

- access: public

void setValue (mixed $value)

#### Inherited Methods

Inherited From P4A_Object

> P4A_Object::actionHandler()
> P4A_Object::build()
> P4A_Object::destroy()
> 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()

Documentation generated on Fri, 26 May 2006 12:43:04 +0200 by phpDocumentor 1.3.0RC5