protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addOption('is_display_pre_color', false); $this->addOption('color_label', 'After Change'); $this->addOption('pre_color_label', 'Before Change'); }
/** * */ public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setAttribute('size', 60); $this->setAttribute('maxlength', 255); $this->setAttribute('class', 'tag-input'); $this->setAttribute('autocomplete', 'off'); }
/** * Configures the current widget. * * Available options: * * @param string fields Fields to feed with the response * * @see sfWidgetForm */ protected function configure($options = array(), $attributes = array()) { $this->addOption('fields', sfConfig::get('app_br_cep_form_fields')); // Tamanho máximo do CEP, com hífen parent::configure($options, $attributes); $this->setAttribute('maxlength', '9'); $this->setOption('type', 'text'); }
/** * Constructor. * Available options: * * jq_picker_options: An array of key-values used as options by the JQueryUI datepicker * * with_time: true if the date have to be with time * * time_format: By default: hh:mm:ss * * date_format: By default: yy-mm-dd * * @param array $options An array of options * @param array $attributes An array of default HTML attributes * * @see sfWidget */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addOption('jq_picker_options', array()); $this->addOption('with_time', false); $this->addOption('date_format', 'yy-mm-dd'); $this->addOption('time_format', 'hh:mm:ss'); $this->default_picker_options = array('showOn' => 'both', 'buttonImageOnly' => true, 'buttonImage' => '/sfDateTimePickerPlugin/images/date.png', 'showButtonPanel' => true, 'changeMonth' => true, 'changeYear' => true, 'showOtherMonths' => true); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addRequiredOption('model'); $this->addOption('method', '__toString'); $this->addOption('nullable', false); $this->addOption('is_hidden', false); $this->addOption('fieldsHidders', array()); $this->addOption('divname', ''); //option added when this widget is used twice in qtip }
/** * 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()) { $this->addRequiredOption('model'); $this->addRequiredOption('column'); $this->addOption('method', '__toString'); $this->addOption('criteria', null); $this->addOption('peer_method', 'doSelectOne'); $this->addOption('object_not_found_text', 'Object not found!'); $this->addOption('template', <<<EOF <span id="%s"></span> <script type="text/javascript"> \$(document).ready(function() { \$("#%s").check_for_code('%s', '%s'); }); </script> EOF ); parent::configure($options, $attributes); }
public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { $this->addOption('format', 'Y-m-d'); return parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->comment_value = ""; }
/** * 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->addOption('prepend_text', false); $this->addOption('append_text', false); }
/** * 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->setOption('type', 'float'); }
/** * @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('format'); }
/** * 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('config'); $this->setOption('is_hidden', empty($options['config'])); }