void BindField(
mixed
$FieldDef
)
|
|
Store the information about the field binded to this control
API Tags:
void CYap_control(
[array
$TableFieldDef = array()]
)
|
|
Class constructor
Parameters:
|
array |
$TableFieldDef: |
this table contains the definition for the field binded to this control |
string Draw(
[bool
$Show = true]
)
|
|
Draw the control
Parameters:
|
bool |
$Show: |
Should the function echo the code, or return it as string |
API Tags:
Redefined in descendants as:
string GetInfo(
string
$InfoName
)
|
|
return the value of the index $InfoName of $this->DbFieldInfo
Parameters:
API Tags:
Return the Js code reuired by the control
API Tags:
void GetJsSubmitFunction(
)
|
|
Return the JS code required to write the function to check the form before submit it
API Tags:
Retrieve the value in the format suitable to build an update SQL query
API Tags:
string GetSqlFieldName(
)
|
|
Retrieve the value in the format suitable to build an update SQL query
API Tags:
Has been set the control's value?
The hidden fields are fields expected not to be requested (never show) in modify form.
The default are false, (show the field)
API Tags:
Redefined in descendants as:
The current value is valid?
API Tags:
Load the input value from form answer
API Tags:
Redefined in descendants as:
void SetCalBackFunc(
string
$name
)
|
|
Set tha callback function to check the input value
Parameters:
API Tags:
void SetControlName(
string
$name
)
|
|
set the name for the control
Parameters:
API Tags:
void SetValue(
mixed
$value
)
|
|
Set the current value for the field
Parameters:
API Tags:
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
API Tags: