public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); if (!isset($options['add_empty'])) { $this->setOption('add_empty', true); } }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addRequiredOption("url"); $this->addOption("new_label", "New"); $this->addOption("ws_url", "@pm_widget_form_doctrine_choice_or_create"); }
/** * Configures the current widget. * * Available options: * * * url: The URL to call to get the choices to use (required) * * config: A JavaScript array that configures the JQuery autocompleter widget * * value_callback: A callback that converts the value before it is displayed * * @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->addOption('json_url', '/sfDoctrineFBAutocompleteJson/list/model/%model%'); $this->addOption('cache', false); $this->addOption('height', false); $this->addOption('newel', false); $this->addOption('firstselected', false); $this->addOption('filter_case', false); $this->addOption('filter_hide', false); $this->addOption('filter_selected', false); $this->addOption('complete_text', false); $this->addOption('maxshownitems', false); $this->addOption('maxitems', false); $this->addOption('onselect', false); $this->addOption('onremove', false); $this->addOption('delay ', false); $this->addOption('template', <<<EOF %associated% <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#%id% option").attr('selected','selected'); jQuery("#%id%").fcbkcomplete({%config%}); }); </script> EOF ); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('observer_select_id'); $this->addOption('foreing_id'); $this->addOption('option_name'); $this->addOption('where'); parent::configure($options, $attributes); }
/** * Constructor. * * Available options: * * * model: The model class (required) * * add_empty: Whether to add a first empty value or not (false by default) * If the option is not a Boolean, the value will be used as the text value * * method: The method to use to display object values (__toString by default) * * key_method: The method to use to display the object keys (getPrimaryKey by default) * * order_by: An array composed of two fields: * * The column to order by the results (must be in the PhpName format) * * asc or desc * * query: A query to use when retrieving objects * * multiple: true if the select tag must allow multiple selections * * table_method: A method to return either a query, collection or single object * * Array (method=>string, parameters=>array()) - when method needs parameters * * @see sfWidgetFormSelect */ protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('model'); $this->addOption('add_empty', false); $this->addOption('method', '__toString'); $this->addOption('key_method', 'getPrimaryKey'); $this->addOption('order_by', null); $this->addOption('query', null); $this->addOption('multiple', false); $this->addOption('table_method', null); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addOption('format', '%select%<br />%input%'); }
public function configure($options = array(), $attributes = array()) { $this->addOption('maxPerPage', 10); parent::configure($options, $attributes); $this->pager->setMaxPerPage($this->getOption('maxPerPage')); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); dcWidgetFormChosenChoice::addConfigurationOptions($this); }
protected function configure($options = array(), $attributes = array()) { $this->addOption('addWhere', null); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addOption('exclude', false); }
protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('url'); $this->addRequiredOption('parent'); parent::configure($options, $attributes); }
/** * Constructor. * * Available options: * * * model: The model class (required) * * add_empty: Whether to add a first empty value or not (false by default) * If the option is not a Boolean, the value will be used as the text value * * method: The method to use to display object values (__toString by default) * * key_method: The method to use to display the object keys (getPrimaryKey by default) * * order_by: An array composed of two fields: * * The column to order by the results (must be in the PhpName format) * * asc or desc * * query: A query to use when retrieving objects * * multiple: true if the select tag must allow multiple selections * * table_method: A method to return either a query, collection or single object * * @see sfWidgetFormSelect */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->addOption('renderer_class', 'rtWidgetFormSelectCheckbox'); }
/** * Constructor. * * @see sfWidgetFormDoctrineChoice */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setOption('multiple', true); }