本文整理匯總了PHP中FormHelper::_divOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormHelper::_divOptions方法的具體用法?PHP FormHelper::_divOptions怎麽用?PHP FormHelper::_divOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FormHelper
的用法示例。
在下文中一共展示了FormHelper::_divOptions方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _divOptions
/**
* Redefine div options para soportar seteo de clase de error en clase contenedora,
* ademas del agregado del div de mensaje de error que se hace en _getInput().
*
* @param array $options
* @return array
*/
protected function _divOptions($options)
{
$divOptions = parent::_divOptions($options);
if ($this->tagIsInvalid() !== false && $this->_getCustom('errorClass')) {
$divOptions = $this->addClass($divOptions, $this->_getCustom('errorClass'));
}
if ($this->_hasFeedback) {
$divOptions = $this->addClass($divOptions, 'has-feedback');
}
return $divOptions;
}
示例2: _divOptions
/**
* Overwrite FormHelper::_divOptions()
*
* - Generate inner and outer div options
* - Generate div options for input
*
* @param array $options Options list.
* @return array
*/
protected function _divOptions($options)
{
$this->_inputType = $options['type'];
$divOptions = array('type' => $options['type'], 'div' => $this->_inputOptions['wrapInput']);
$this->_divOptions = parent::_divOptions($divOptions);
$default = array('div' => array('class' => null));
$options = Hash::merge($default, $options);
$divOptions = parent::_divOptions($options);
if ($this->tagIsInvalid() !== false) {
$divOptions = $this->addClass($divOptions, $this->_inputOptions['errorClass']);
}
return $divOptions;
}
示例3: _divOptions
/**
* Generate div options for input
*
* @param array $options Options list
* @return array
*/
protected function _divOptions($options)
{
$divOptions = parent::_divOptions($options);
$divOptions = $this->_divOptionsAddon($options, $divOptions);
return $divOptions;
}