當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。