dolibarr 24.0.0-beta
DatetimegmtField Class Reference

Class to datetimegmt field. More...

Inheritance diagram for DatetimegmtField:
Collaboration diagram for DatetimegmtField:

Public Member Functions

 printInputSearchField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='')
 Return HTML string to put an input search field into a page.
 
 printInputField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='')
 Return HTML string to put an input field into a page.
 
 printOutputField ($fieldInfos, $key, $value, $keyPrefix='', $keySuffix='', $moreCss='', $moreAttrib='')
 Return HTML string to show a field into a page.
 
 getInputCss ($fieldInfos, $moreCss='', $defaultCss='')
 Get input CSS.
 
 verifyFieldValue ($fieldInfos, $key, $value)
 Verify if the field value is valid.
 
 verifyPostFieldValue ($fieldInfos, $key, $keyPrefix='', $keySuffix='')
 Verify if the field value from GET/POST is valid.
 
 getPostFieldValue ($fieldInfos, $key, $defaultValue=null, $keyPrefix='', $keySuffix='')
 Get field value from GET/POST.
 
 getPostSearchFieldValue ($fieldInfos, $key, $defaultValue=null, $keyPrefix='', $keySuffix='')
 Get search field value from GET/POST.
 
 sqlFilterSearchField ($fieldInfos, $key, $value)
 Get sql filter for search field.
 
- Public Member Functions inherited from CommonField
 __construct ($db)
 Constructor.
 
 clearErrors ()
 clear errors
 
 errorsToString ($separator=', ')
 Method to output saved errors.
 
 isEmptyValue ($fieldInfos, $value, $emptyValues=null)
 Check if the value is deemed as empty.
 

Additional Inherited Members

- Static Public Member Functions inherited from CommonField
static setForm (&$form)
 Set form used for print the field.
 
static setValidator (&$validator)
 Set validator used for check the field value.
 

Detailed Description

Class to datetimegmt field.

Definition at line 30 of file datetimegmtfield.class.php.

Member Function Documentation

◆ getInputCss()

DatetimegmtField::getInputCss ( $fieldInfos,
$moreCss = '',
$defaultCss = '' )

Get input CSS.

Parameters
FieldInfos$fieldInfosProperties of the field
string$moreCssValue for css to define style/length of field.
string$defaultCssDefault value for css to define style/length of field.
Returns
string
See also
self\printInputSearchField(), self\printInputField()

Reimplemented from CommonField.

Definition at line 123 of file datetimegmtfield.class.php.

◆ getPostFieldValue()

DatetimegmtField::getPostFieldValue ( $fieldInfos,
$key,
$defaultValue = null,
$keyPrefix = '',
$keySuffix = '' )

Get field value from GET/POST.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$defaultValuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
Returns
mixed
See also
self\printInputField()

Reimplemented from CommonField.

Definition at line 177 of file datetimegmtfield.class.php.

References dol_mktime(), and GETPOSTINT().

◆ getPostSearchFieldValue()

DatetimegmtField::getPostSearchFieldValue ( $fieldInfos,
$key,
$defaultValue = null,
$keyPrefix = '',
$keySuffix = '' )

Get search field value from GET/POST.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$defaultValuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
Returns
mixed
See also
self\printInputSearchField()

Reimplemented from CommonField.

Definition at line 201 of file datetimegmtfield.class.php.

References dol_mktime(), and GETPOSTINT().

◆ printInputField()

DatetimegmtField::printInputField ( $fieldInfos,
$key,
$value,
$keyPrefix = '',
$keySuffix = '',
$moreCss = '',
$moreAttrib = '' )

Return HTML string to put an input field into a page.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$valuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
string$moreCssValue for css to define style/length of field.
string$moreAttribTo add more attributes on html input tag
Returns
string

Reimplemented from CommonField.

Definition at line 83 of file datetimegmtfield.class.php.

References CommonField\isEmptyValue().

◆ printInputSearchField()

DatetimegmtField::printInputSearchField ( $fieldInfos,
$key,
$value,
$keyPrefix = '',
$keySuffix = '',
$moreCss = '',
$moreAttrib = '' )

Return HTML string to put an input search field into a page.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$valuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
string$moreCssValue for css to define style/length of field.
string$moreAttribTo add more attributes on html input tag
Returns
string

Reimplemented from CommonField.

Definition at line 49 of file datetimegmtfield.class.php.

◆ printOutputField()

DatetimegmtField::printOutputField ( $fieldInfos,
$key,
$value,
$keyPrefix = '',
$keySuffix = '',
$moreCss = '',
$moreAttrib = '' )

Return HTML string to show a field into a page.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$valuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
string$moreCssValue for css to define style/length of field.
string$moreAttribTo add more attributes on html input tag
Returns
string

Reimplemented from CommonField.

Definition at line 109 of file datetimegmtfield.class.php.

References dol_print_date(), and CommonField\isEmptyValue().

◆ sqlFilterSearchField()

DatetimegmtField::sqlFilterSearchField ( $fieldInfos,
$key,
$value )

Get sql filter for search field.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$valuePreselected value to show (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
Returns
string
See also
self\printInputSearchField(), self\getPostSearchFieldValue()

Reimplemented from CommonField.

Definition at line 232 of file datetimegmtfield.class.php.

References CommonField\isEmptyValue().

◆ verifyFieldValue()

DatetimegmtField::verifyFieldValue ( $fieldInfos,
$key,
$value )

Verify if the field value is valid.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
mixed$valueValue to check (for date type it must be in timestamp format, for amount or price it must be a php numeric value, for array type must be array)
Returns
bool
See also
self\printInputField()

Reimplemented from CommonField.

Definition at line 137 of file datetimegmtfield.class.php.

References CommonField\isEmptyValue().

◆ verifyPostFieldValue()

DatetimegmtField::verifyPostFieldValue ( $fieldInfos,
$key,
$keyPrefix = '',
$keySuffix = '' )

Verify if the field value from GET/POST is valid.

Parameters
FieldInfos$fieldInfosProperties of the field
string$keyKey of field
string$keyPrefixPrefix string to add into name and id of field (can be used to avoid duplicate names)
string$keySuffixSuffix string to add into name and id of field (can be used to avoid duplicate names)
Returns
bool
See also
self\printInputField()

Reimplemented from CommonField.

Definition at line 161 of file datetimegmtfield.class.php.


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