com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

Class: TableField

Source Location: /_includes/lib_admin_panel.php

Class Overview


Describes a table field with a connected value in $_REQUEST. The table field tries to capture it's connected value if possible.


Author(s):

  • Andreas Launila

Variables

Methods



Class Details

[line 255]
Describes a table field with a connected value in $_REQUEST. The table field tries to capture it's connected value if possible.



Tags:

author:  Andreas Launila


[ Top ]


Class Variables

$displayName =

[line 265]

The name that should be displayed to the user.



Tags:

access:  private

Type:   string


[ Top ]

$requestName =

[line 260]

The name used to identify field in $_REQUEST.



Tags:

access:  private

Type:   string


[ Top ]

$tableField =

[line 270]

The name of the corresponding field in the table.



Tags:

access:  private

Type:   string


[ Top ]

$value =

[line 275]

The value of the field (used for different things, e.g. identification).



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


constructor __construct [line 284]

TableField __construct( string $requestName, string $displayName, string $tableField, [string $value = false])

Constructor for TableField.



Tags:

access:  public


Parameters:

string   $requestName   The name used to identify field in $_REQUEST.
string   $displayName   The name to display to the user.
string   $tableField   The corresponding field in the table.
string   $value   The value of the field.

[ Top ]

method getDisplayName [line 306]

string getDisplayName( )

Gets the display name of the field.



Tags:

return:  A name.
access:  public


[ Top ]

method getRequestName [line 298]

string getRequestName( )

Gets the request name of the field.



Tags:

return:  An $_REQUEST name.
access:  public


[ Top ]

method getTableField [line 314]

string getTableField( )

Gets the name of the table field connected to this instance.



Tags:

return:  A table field name.
access:  public


[ Top ]

method getValue [line 322]

string getValue( )

Gets the value of the field.



Tags:

return:  A value.
access:  public


[ Top ]

method hasValue [line 334]

boolean hasValue( )

Checks if the field has a value set or not.



Tags:

return:  True if the field has a value, false otherwise.
access:  public


[ Top ]

method setValue [line 342]

void setValue( $newVal $newVal)

Sets a new value for the field.



Tags:

access:  public


Parameters:

$newVal   $newVal   The new value to assign.

[ Top ]


Documentation generated on Sun, 16 Apr 2006 21:03:09 +0200 by phpDocumentor 1.3.0RC4