Jump to content

AtkDateTimeAttribute: Difference between revisions

From NusaATK
No edit summary
No edit summary
Line 2: Line 2:


<syntaxhighlight lang="php"> atkDateTimeAttribute($name, $default_date="",$default_time="",$flags=0) </syntaxhighlight>
<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

Revision as of 17:19, 15 May 2008

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)