-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from upsilon/ticket1873
added opWidgetFormDateTime (fixes #1873)
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the OpenPNE package. | ||
* (c) OpenPNE Project (http://www.openpne.jp/) | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file and the NOTICE file that were distributed with this source code. | ||
*/ | ||
|
||
/** | ||
* opWidgetFormDateTime | ||
* | ||
* @package OpenPNE3 | ||
* @subpackage widget | ||
* @author Kimura Youichi <kim.upsilon@gmail.com> | ||
*/ | ||
class opWidgetFormDateTime extends sfWidgetFormI18nDateTime | ||
{ | ||
/** | ||
* @see sfWidgetFormI18nDateTime | ||
*/ | ||
public function getDateWidget($attributes = array()) | ||
{ | ||
return new opWidgetFormDate(array_merge(array('culture' => $this->getOption('culture')), $this->getOptionsFor('date')), $this->getAttributesFor('date', $attributes)); | ||
} | ||
} | ||
|