/** * 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('culture', sfContext::getInstance()->getUser()->getCulture()); $this->addOption('width', 'resolve'); parent::configure($options, $attributes); }
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_propel_choice_or_create"); }
public function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setOption('model', 'sfGuardUserProfile'); $this->setOption('method', 'getNameWithRole'); $this->setOption('criteria', sfGuardUserProfileQuery::create()->filterByIsPublic(true)); $this->setOption('multiple', true); $this->setOption('expanded', true); }
public function configure($options = array(), $attributes = array()) { $this->addRequiredOption('model'); $this->addRequiredOption('column'); $this->addOption('url', '@pm_widget_form_propel_jquery_tokeninput'); $this->addOption('method', '__toString'); $this->addOption('key_method', 'getPrimaryKey'); $this->addOption('criteria', null); $this->addOption('retrieve_method', 'retrieveByPK'); // AUN NO FUNCIONA MULTIPLE $this->addOption('multiple', false); $this->addOption('peer_method', 'doSelect'); $this->addOption('config', '{}'); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { $this->addOption('action2Add', 'mooDooClientFiles/propelChoiceWithAdd'); parent::configure($options, $attributes); }
/** * Available options: * * * group_by_method: A method on the current model that will return the * object the widget is grouped by (i.e. getAuthor) * * @see sfWidget */ protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('group_by_method'); parent::configure($options, $attributes); }
protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); dcWidgetFormChosenChoice::addConfigurationOptions($this); }
protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('url'); $this->addRequiredOption('input_name'); parent::configure($options, $attributes); }
/** * Constructor. * * @see sfWidgetFormPropelChoice */ protected function configure($options = array(), $attributes = array()) { parent::configure($options, $attributes); $this->setOption('multiple', true); }