RDBAttributeDescription Class Reference

Detailed Description

Instances of RDBAttributeDescription describe attributes of PersistentObjects in a relational database.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 21 of file RDBAttributeDescription.php.

+ Inheritance diagram for RDBAttributeDescription:

Public Member Functions

 __construct ($name, $type, array $tags, $defaultValue, $validateType, $validateDescription, $isEditable, $inputType, $displayType, $table, $column)
 
 getTable ()
 
 getColumn ()
 
- Public Member Functions inherited from AttributeDescription
 __construct ($name, $type, array $tags, $defaultValue, $validateType, $validateDescription, $isEditable, $inputType, $displayType)
 
 hasTag ($tag)
 
 matchTags (array $tags=array(), $matchMode='all')
 
 getPropertyNames ()
 
 getName ()
 
 getType ()
 
 getTags ()
 
 getDefaultValue ()
 
 getValidateType ()
 
 getValidateDescription ()
 
 getIsEditable ()
 
 getInputType ()
 
 getDisplayType ()
 

Protected Attributes

 $table = ''
 
 $column = ''
 
- Protected Attributes inherited from AttributeDescription
 $name = ''
 
 $type = 'String'
 
 $tags = array()
 
 $defaultValue = null
 
 $validateType = ''
 
 $validateDescription = ''
 
 $isEditable = true
 
 $inputType = 'text'
 
 $displayType = 'text'
 

Constructor & Destructor Documentation

__construct (   $name,
  $type,
array  $tags,
  $defaultValue,
  $validateType,
  $validateDescription,
  $isEditable,
  $inputType,
  $displayType,
  $table,
  $column 
)

Constructor.

Parameters
$nameThe attribute name
$typeThe attribute type
$tagsAn array of application specific tags that this attribute is tagged with
$defaultValueThe default value (will be set when creating a blank object, see PersistenceMapper::create())
$validateTypeA validation type for the value
$validateDescriptionA description for the validation type
$isEditableBoolean whether the attribute should be editable, see Control::render()
$inputTypeThe input type for the value, see Control::render()
$displayTypeThe display type for the value
$tableThe table name
$columnThe column name

Definition at line 40 of file RDBAttributeDescription.php.

Member Function Documentation

getTable ( )

Get the table name.

Returns
String

Definition at line 54 of file RDBAttributeDescription.php.

getColumn ( )

Get the column name.

Returns
String

Definition at line 62 of file RDBAttributeDescription.php.

Member Data Documentation

$table = ''
protected

Definition at line 23 of file RDBAttributeDescription.php.

$column = ''
protected

Definition at line 24 of file RDBAttributeDescription.php.