Jump to content

AtkDateTimeAttribute: Difference between revisions

From NusaATK
New page: Straight from the attribute file: atkDateTimeAttribute($name, $default_date="",$default_time="",$flags=0) @param $name Name of the attribute @param $default_date start dat...
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{attribute}}
Straight from the attribute file:
Straight from the attribute file:


atkDateTimeAttribute($name, $default_date="",$default_time="",$flags=0)
<syntaxhighlight lang="php"> atkDateTimeAttribute($name, $default_date="",$default_time="",$flags=0) </syntaxhighlight>
@param $name            Name of the attribute
@param $name            Name of the attribute<br>
@param $default_date    start date
@param $default_date    start date<br>
@param $default_time    start time
@param $default_time    start time<br>
@param $flags            Flags for this attribute
@param $flags            Flags for this attribute<br>
 
<br>
@todo I don't know who added the default_date and default_time parameters,
@todo I don't know who added the default_date and default_time parameters,
but at least the atkDateAttribute doesn't support a default date. if
but at least the atkDateAttribute doesn't support a default date. if

Latest revision as of 13:07, 12 February 2010

Attribute: atkDateTimeAttribute

API docs | Flags

List of other attributes

atkDateTimeAttribute screenshot

Straight from the attribute file:

 atkDateTimeAttribute($name, $default_date="",$default_time="",$flags=0)

@param $name Name of the attribute
@param $default_date start date
@param $default_time start time
@param $flags Flags for this attribute

@todo I don't know who added the default_date and default_time parameters, but at least the atkDateAttribute doesn't support a default date. if you want to set a default date you should use initial_values anyways so I think the default_date / default_time parameters should be removed. But can we keep this backwards compatible somehow? At least now we are certain it doesn't work. ;) (PCV)