Skip to content

Commit

Permalink
Merge pull request #452 from upsilon/ticket1873
Browse files Browse the repository at this point in the history
added opWidgetFormDateTime (fixes #1873)
  • Loading branch information
nishizoe authored Dec 29, 2017
2 parents c9355cf + 6cb8b77 commit 8d59c30
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions lib/widget/opWidgetFormDateTime.class.php
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));
}
}

0 comments on commit 8d59c30

Please sign in to comment.