Jump to content

AtkDateTimeAttribute: Difference between revisions

From NusaATK
No edit summary
No edit summary
Line 1: Line 1:
Straight from the attribute file:
Straight from the attribute file:


<?php 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
@param $default_date    start date
@param $default_date    start date

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)