Squiz Matrix
4.12.2
|
Public Member Functions | |
Asset_Attribute_DateTime ($attributeid=0, $value=NULL) | |
setEditParams (&$node) | |
paint ($prefix, $read_only=FALSE) | |
process ($prefix) | |
getTimestamp () | |
getISO8601 () | |
validateValue (&$value) | |
_getPeriodOptions () | |
_getAgeOptions () | |
_getTodayAgeOptions () | |
getKeywordValue ($format='') | |
Public Member Functions inherited from Asset_Attribute | |
Asset_Attribute ($attributeid=0, $value=NULL, $default_params=Array()) | |
& | loadAttribute ($attributeid=0, $value=NULL, $default_params=Array()) |
type () | |
paint ($prefix, $read_only=FALSE) | |
paintEditParams ($prefix, $write_access=FALSE) | |
processEditParams ($prefix) | |
process ($prefix) | |
validateValue (&$value) | |
setValue (&$value) | |
setEditParams (&$node) | |
setEditParam ($field, $value) | |
setParam ($field, $value) | |
getContent () | |
getKeywordValue ($format='') | |
exportToXML () | |
exportContentsToXML () | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Protected Member Functions | |
_getDateOptionEditInterface ($prefix, $option_name, $default_date=NULL, $default_period=NULL, $circa=NULL) | |
Additional Inherited Members | |
Data Fields inherited from Asset_Attribute | |
$id = 0 | |
$name = '' | |
$uniq = FALSE | |
$description = '' | |
$_params = Array() | |
$_default_value = NULL | |
$_edit_params = Array() | |
$value = NULL | |
$processed = FALSE | |
$is_admin = FALSE | |
Definition at line 72 of file datetime.inc.
_getAgeOptions | ( | ) |
Return valid period age options for the datetime field
Definition at line 716 of file datetime.inc.
|
protected |
Returns the edit interface for each date option type
string | $prefix | Prefix for form elements |
string | $option_name | Date option type to paint |
string | $default_date | Default fixed date |
string | $default_period | Default date period setting |
boolean | $circa | NULL = circa not allowed, otherwise TRUE/FALSE depending on circa setting |
Definition at line 780 of file datetime.inc.
_getPeriodOptions | ( | ) |
Return valid period type options for the datetime field
Definition at line 696 of file datetime.inc.
_getTodayAgeOptions | ( | ) |
Return valid "Today" period age options
Definition at line 732 of file datetime.inc.
Asset_Attribute_DateTime | ( | $attributeid = 0 , |
|
$value = NULL |
|||
) |
Constructor
int | $attributeid | the attribute id to be loaded |
mixed | $value | the current value for the element |
Definition at line 83 of file datetime.inc.
getISO8601 | ( | ) |
Get the current value as an ISO8601 formatted date
Definition at line 623 of file datetime.inc.
getKeywordValue | ( | $format = '' | ) |
Returns the content of this attribute as it should be shown in a keyword replacement
string | $format | Format suffix |
Definition at line 750 of file datetime.inc.
getTimestamp | ( | ) |
Get the current value as a unix timestamp
Definition at line 545 of file datetime.inc.
paint | ( | $prefix, | |
$read_only = FALSE |
|||
) |
Prints the interface for filling in a value
string | $prefix | prefix for the form element |
boolean | $read_only | are we just printing the value |
Definition at line 197 of file datetime.inc.
process | ( | $prefix | ) |
Processes the interface for filling in a value
string | $prefix | prefix for the form element |
Definition at line 420 of file datetime.inc.
setEditParams | ( | & | $node | ) |
Takes an XML_Tree_Node from an edit interface XML file and creates the params array from it
object | &$node | XML_Tree_Node object. |
Definition at line 129 of file datetime.inc.
validateValue | ( | & | $value | ) |
Ensure the attribute being set is a valid date/time
mixed | &$value | value to be validated |
Definition at line 645 of file datetime.inc.