当前位置: 首页>>代码示例>>PHP>>正文


PHP sfWidgetFormInput::configure方法代码示例

本文整理汇总了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');
 }
开发者ID:sensorsix,项目名称:app,代码行数:15,代码来源:sfWidgetFormInputRange.class.php

示例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);
 }
开发者ID:nova76,项目名称:nova-plugins,代码行数:7,代码来源:sfWidgetFormAutocomplete.class.php

示例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');
  }
开发者ID:nationalfield,项目名称:symfony,代码行数:15,代码来源:sfWidgetFormInputHidden.class.php

示例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');
 }
开发者ID:nocoolnametom,项目名称:OpenMicNight,代码行数:18,代码来源:sfWidgetFormInputDate.class.php

示例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'));
 }
开发者ID:noreiller,项目名称:sfAssetsGalleryPlugin,代码行数:10,代码来源:sfWidgetFormAssetExtraChoice.class.php

示例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);
 }
开发者ID:alexhandzhiev,项目名称:sifact,代码行数:7,代码来源:sfExtraWidgetFormInputSpin.class.php

示例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);
  }
开发者ID:nationalfield,项目名称:symfony,代码行数:15,代码来源:sfWidgetFormInputFile.class.php

示例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');
 }
开发者ID:ibr,项目名称:symfony1,代码行数:16,代码来源:sfWidgetFormInputText.class.php

示例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);
 }
开发者ID:nova76,项目名称:nova-plugins,代码行数:8,代码来源:novaWidgetFormjQqueryUIAutocomplete.class.php

示例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);
 }
开发者ID:relo-san,项目名称:dinSymfonyExtraPlugin,代码行数:15,代码来源:dinWidgetFormJqueryAutocompleter.php

示例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);
 }
开发者ID:nvidela,项目名称:kimkelen,代码行数:8,代码来源:ncWidgetFormSelect2Ajax.class.php

示例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);
 }
开发者ID:voota,项目名称:voota,代码行数:8,代码来源:sfWidgetFormInputDelete.class.php

示例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');
  }
开发者ID:nationalfield,项目名称:symfony,代码行数:20,代码来源:sfWidgetFormInputPassword.class.php

示例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']);
     }
 }
开发者ID:uniteddiversity,项目名称:policat,代码行数:8,代码来源:WidgetFormInputCheckbox.class.php


注:本文中的sfWidgetFormInput::configure方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。