YAP
2.5
|
Public Member Functions | |
CYap_control ($TableFieldDef=array()) | |
BindField ($FieldDef) | |
SetValue ($value) | |
SetControlName ($name) | |
SetControlLabel ($name) | |
SetCalBackFunc ($name) | |
SetProperty ($Property, $value) | |
ParseResponse () | |
_InternalCheck () | |
IsValid () | |
GetSqlData () | |
GetSqlFieldName () | |
GetInfo ($InfoName) | |
GetHeaderCode () | |
HasValue () | |
GetValue () | |
GetJsCode () | |
GetJsSubmitFunction () | |
Draw ($Show=true) | |
DrawLabel ($Show=true) | |
IsHidden () | |
Data Fields | |
$Name | |
$DbField | |
$DbFieldInfo | |
$ValidIndex =array('autoincrement','values','table','type','apice','size','decimal','name') | |
$FieldValue | |
$IHaveValue | |
$CallBackCheck | |
$IsValidInput | |
$Label | |
Definition at line 40 of file CYap_Control.php.
_InternalCheck | ( | ) |
Internal function to check the input value. Each control may develop som intrisic cchecks i.e an integer inpu accepts only integer value In the base class this function is empty private
Definition at line 196 of file CYap_Control.php.
BindField | ( | $FieldDef | ) |
Definition at line 118 of file CYap_Control.php.
CYap_control | ( | $TableFieldDef = array() | ) |
Class constructor
array | this table contains the definition for the field binded to this control |
Definition at line 105 of file CYap_Control.php.
Draw | ( | $Show = true | ) |
Draw the control
bool | Should the function echo the code, or return it as string public |
Definition at line 293 of file CYap_Control.php.
DrawLabel | ( | $Show = true | ) |
Draw the control label. The base class provides standard way to draw the label.
boolean | $Show |
Definition at line 303 of file CYap_Control.php.
GetHeaderCode | ( | ) |
Definition at line 250 of file CYap_Control.php.
GetInfo | ( | $InfoName | ) |
return the value of the index $InfoName of $this->DbFieldInfo
string | $InfoName |
Definition at line 239 of file CYap_Control.php.
GetJsCode | ( | ) |
Return the Js code reuired by the control public
Definition at line 272 of file CYap_Control.php.
GetJsSubmitFunction | ( | ) |
Return the JS code required to write the function to check the form before submit it public
Definition at line 281 of file CYap_Control.php.
GetSqlData | ( | ) |
Retrieve the value in the format suitable to build an update SQL query
Definition at line 216 of file CYap_Control.php.
GetSqlFieldName | ( | ) |
Retrieve the value in the format suitable to build an update SQL query
Definition at line 228 of file CYap_Control.php.
GetValue | ( | ) |
Definition at line 264 of file CYap_Control.php.
HasValue | ( | ) |
IsHidden | ( | ) |
The hidden fields are fields expected not to be requested (never show) in modify form. The default are false, (show the field)
Definition at line 313 of file CYap_Control.php.
IsValid | ( | ) |
ParseResponse | ( | ) |
SetCalBackFunc | ( | $name | ) |
Set tha callback function to check the input value
string | public |
Definition at line 159 of file CYap_Control.php.
SetControlLabel | ( | $name | ) |
set the Label for the control
string | public |
Definition at line 150 of file CYap_Control.php.
SetControlName | ( | $name | ) |
set the name for the control
string | public |
Definition at line 141 of file CYap_Control.php.
SetProperty | ( | $Property, | |
$value | |||
) |
Generic function to set the paramters without create many set function as the property declared by each control
Property | string |
Value | mixed public |
Definition at line 170 of file CYap_Control.php.
SetValue | ( | $value | ) |
Set the current value for the field
string | mixed public |
Definition at line 130 of file CYap_Control.php.
$CallBackCheck |
Definition at line 88 of file CYap_Control.php.
$DbField |
Definition at line 51 of file CYap_Control.php.
$DbFieldInfo |
Definition at line 65 of file CYap_Control.php.
$FieldValue |
Definition at line 76 of file CYap_Control.php.
$IHaveValue |
Definition at line 83 of file CYap_Control.php.
$IsValidInput |
Definition at line 93 of file CYap_Control.php.
$Label |
Definition at line 97 of file CYap_Control.php.
$Name |
Definition at line 46 of file CYap_Control.php.
$ValidIndex =array('autoincrement','values','table','type','apice','size','decimal','name') |
Definition at line 70 of file CYap_Control.php.