本文整理汇总了PHP中sfWidgetFormInput::configure方法的典型用法代码示例。如果您正苦于以下问题:PHP sfWidgetFormInput::configure方法的具体用法?PHP sfWidgetFormInput::configure怎么用?PHP sfWidgetFormInput::configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfWidgetFormInput
的用法示例。
在下文中一共展示了sfWidgetFormInput::configure方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configure
/**
* Configures the current widget.
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetForm
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addRequiredOption('min');
$this->addRequiredOption('max');
$this->setOption('type', 'range');
}
示例2: configure
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addOption('culture', $this->_current_language());
$this->addOption('prepend');
$this->addOption('append');
}
开发者ID:listingpass,项目名称:sfBootstrapPropelAdminThemePlugin,代码行数:7,代码来源:sfWidgetFormBootstrap3I18nNumber.class.php
示例3: configure
public function configure($options = array(), $attributes = array())
{
$this->addRequiredOption('url');
$this->addOption('extraParams', '{}');
$this->addOption('param', 'autocomplete');
parent::configure($options, $attributes);
}
示例4: configure
/**
* Configures the current widget.
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetFormInput
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->setOption('is_hidden', true);
$this->setOption('type', 'hidden');
}
示例5: configure
/**
* Available options:
*
* * max: The maximum date allowed (as a timestamp, DateTime or yyyy-mm-dd format)
* * min: The minimum date allowed (as a timestamp, DateTime or yyyy-mm-dd format)
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetForm
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addOption('min', null);
$this->addOption('max', null);
$this->setOption('type', 'date');
}
示例6: configure
/**
* Constructor.
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addOption('culture', sfPlop::get('sf_plop_default_culture'));
$this->addOption('url', '@sf_plop_ws_repository');
$this->addOption('query_string', array('folder=/assets', 'type=file'));
}
示例7: configure
public function configure($options = array(), $attributes = array())
{
$this->setAttribute('autocomplete', 'off');
$this->addOption('min', 0);
$this->addOption('max', 99999);
parent::configure($options, $attributes);
}
示例8: configure
/**
* Configures the current widget.
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetFormInput
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->setOption('type', 'file');
$this->setOption('needs_multipart', true);
}
示例9: configure
/**
* Configures the current widget.
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetForm
*/
protected function configure($options = array(), $attributes = array())
{
if (array_key_exists('size', $options)) {
$this->attributes['size'] = $options['size'];
}
parent::configure($options, $attributes);
$this->setOption('type', 'text');
}
示例10: configure
public function configure($options = array(), $attributes = array())
{
$this->addRequiredOption('url');
$this->addOption('appendTo', '');
$this->addOption('param', 'autocomplete');
$this->addOption('desc', false);
parent::configure($options, $attributes);
}
示例11: configure
/**
* Configure widget
*
* @param array $options An array of options [optional]
* @param array $attributes An array of default HTML attributes [optional]
* @return void
*/
protected function configure($options = array(), $attributes = array())
{
$this->addRequiredOption('url');
$this->addOption('value_callback');
$this->addOption('config', '{ }');
$this->addOption('choices');
parent::configure($options, $attributes);
}
示例12: configure
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addRequiredOption('url');
$this->addOption('select2_options', array('minimumInputLength' => 3, 'placeholder' => 'Buscar...'));
$this->addOption('cache_responses', false);
$this->addOption('html_results', true);
}
示例13: configure
protected function configure($options = array(), $attributes = array())
{
$this->addRequiredOption('url');
$this->addRequiredOption('model_id');
$this->addOption('confirm', null);
$this->addOption('icon', null);
parent::configure($options, $attributes);
}
示例14: configure
/**
* Configures the current widget.
*
* Available options:
*
* * always_render_empty: true if you want the input value to be always empty when rendering (true by default)
*
* @param array $options An array of options
* @param array $attributes An array of default HTML attributes
*
* @see sfWidgetFormInput
*/
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->addOption('always_render_empty', true);
$this->setOption('type', 'password');
}
示例15: configure
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
$this->setOption('type', 'checkbox');
if (isset($attributes['value'])) {
$this->setOption('value_attribute_value', $attributes['value']);
}
}