JQuery/View/Helper/DatePicker.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- ZendX
- Copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- ZendX_JQuery
- Subpackage
- View
- Version
- $Id: DatePicker.php 21867 2010-04-16 07:45:34Z beberlei $
\ZendX_JQuery_View_Helper_DatePicker
- Parent(s)
- \ZendX_JQuery_View_Helper_UiWidget < \Zend_View_Helper_HtmlElement
- Copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_View_Helper_FormText
Properties


\ZendX_JQuery_View_Helper_JQuery_Container $jquery
Methods


_prepareAttributes(String $id, String $value, Array $attribs) : Array
Helps with building the correct Attributes Array structure.
Inherited from: \ZendX_JQuery_View_Helper_UiWidget::_prepareAttributes()Name | Type | Description |
---|---|---|
$id | String | |
$value | String | |
$attribs | Array |
Type | Description |
---|---|
Array | $attribs |


datePicker(string $id, string $value = null, array $params = array(), array $attribs = array()) : string
Create a jQuery UI Widget Date Picker
Name | Type | Description |
---|---|---|
$id | string | |
$value | string | |
$params | array | jQuery Widget Parameters |
$attribs | array | HTML Element Attributes |
Type | Description |
---|---|
string |


resolveZendLocaleToDatePickerFormat( $format = null) : string
A Check for Zend_Locale existance has already been done in {@link datePicker()} this function only resolves the default format from Zend Locale to a jQuery Date Picker readable format.
This function can be potentially buggy because of its easy nature and is therefore stripped from the core functionality to be easily overriden.
Name | Type | Description |
---|---|---|
$format |
Type | Description |
---|---|
string |


setView(\Zend_View_Interface $view) : \ZendX_JQuery_View_Helper_Widget
Set view and enable jQuery Core and UI libraries
Inherited from: \ZendX_JQuery_View_Helper_UiWidget::setView()Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_Widget |