YAP  2.5
 All Data Structures Namespaces Files Functions Variables
CYap_clsSearchDate Class Reference
Inheritance diagram for CYap_clsSearchDate:
CYap_clsSearchField

Public Member Functions

 CYap_clsSearchDate ($cfg, $FieldName)
 
 _Initialize ()
 
 LoadCfg ($cfg)
 
 GetWhereCondition ($Db_Class)
 
 ReadFormData ()
 
 parseDate ($date, $format)
 
GetDrawObject ()
 
- Public Member Functions inherited from CYap_clsSearchField
 CYap_clsSearchField ($cfg, $FieldName)
 
 GetParameter ($paramName, $cfg, $default)
 
 _Initialize ()
 
 LoadCFg ($cfg)
 
 SetDefaultValue ($value)
 
 SetLabel ($value)
 
 SetProperty ($Property, $value)
 
 GetProperty ($Property)
 
 GetWhereCondition ($db_class)
 
 GetValue ()
 
 StoreInformation ($prefix)
 
 LoadInformation ($prefix)
 
 CleanSessionInfo ($prefix)
 
 ReadFormData ()
 
 JsSearchFieldValidate ()
 
GetDrawObject ()
 
 _MakeViewObj ()
 

Data Fields

 $ShowFormat
 
 $WhereFormat
 
- Data Fields inherited from CYap_clsSearchField
 $Type
 
 $PaddingChar
 
 $Padding
 
 $UseRegex
 
 $Label
 
 $MyName
 
 $DbField
 
 $Size
 
 $RequestValue
 
 $ViewClass
 
 $ViewObj
 
 $DefaultValue
 
 $FieldOrder
 

Detailed Description

Definition at line 1485 of file CYap_clsSearch.php.

Member Function Documentation

_Initialize ( )

Set the properties to the default value private

Definition at line 1505 of file CYap_clsSearch.php.

CYap_clsSearchDate (   $cfg,
  $FieldName 
)

Definition at line 1496 of file CYap_clsSearch.php.

& GetDrawObject ( )

Draw the field. public

Returns
CYap_Control object

Definition at line 1671 of file CYap_clsSearch.php.

GetWhereCondition (   $Db_Class)
Parameters
CYap_Db$db_class
Returns
String public
Since
2.1.0

Definition at line 1535 of file CYap_clsSearch.php.

LoadCfg (   $cfg)

Parse and load the configuration parameters

Parameters
string[]$cfg public
Returns
void

Definition at line 1519 of file CYap_clsSearch.php.

parseDate (   $date,
  $format 
)

Returns a formatted date from a string based on a given format (from PHP Manual) Supported formats

Y - year as a decimal number including the century m - month as a decimal number (range 1 to 12) d - day of the month as a decimal number (range 1 to 31)

H - hour as decimal number using a 24-hour clock (range 0 to 23) M - minute as decimal number s - second as decimal number u - microsec as decimal number

Parameters
stringdate string to convert to date
stringformat expected format of the original date
Returns
string rfc3339 w/o timezone YYYY-MM-DD YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.s

Definition at line 1606 of file CYap_clsSearch.php.

ReadFormData ( )

Read data from search form. Each field retrieves its own value. If the value is not found, the default value is assumed.

Definition at line 1564 of file CYap_clsSearch.php.

Field Documentation

$ShowFormat

Definition at line 1493 of file CYap_clsSearch.php.

$WhereFormat

Definition at line 1494 of file CYap_clsSearch.php.


The documentation for this class was generated from the following file: