Created
October 5, 2010 14:12
-
-
Save bshaffer/611618 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * sfWidgetFormJQueryDateTime class | |
| * | |
| * Combines jQueryDate widget with a regular time widget, for use of jQuery date | |
| * when time is required. | |
| * | |
| * @package default | |
| * @author Brent Shaffer | |
| */ | |
| class sfWidgetFormJQueryDateTime extends sfWidgetFormDateTime | |
| { | |
| /** | |
| * Returns the date widget. | |
| * | |
| * @param array $attributes An array of attributes | |
| * | |
| * @return sfWidgetForm A Widget representing the date | |
| */ | |
| protected function getDateWidget($attributes = array()) | |
| { | |
| return new sfWidgetFormJQueryDate($this->getOptionsFor('date'), $this->getAttributesFor('date', $attributes)); | |
| } | |
| /** | |
| * Returns the time widget. | |
| * | |
| * @param array $attributes An array of attributes | |
| * | |
| * @return sfWidgetForm A Widget representing the time | |
| */ | |
| protected function getTimeWidget($attributes = array()) | |
| { | |
| return new sfWidgetFormTime($this->getOptionsFor('time'), $this->getAttributesFor('time', $attributes)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment