/**
  * Config
  *
  * @param array $options
  * @param array $attributes
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('path', '/images/marker');
     $this->addOption('icons', array());
     $this->addOption('target', '#point_icon');
     $this->setOption('is_hidden', false);
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addRequiredOption('model');
     $this->addRequiredOption('link_url', '#');
     $this->addOption('behindScene', true);
     $this->addOption('method', '__toString');
     $this->addOption('notExistingAddDisplay', true);
     $this->addOption('notExistingAddTitle', 'This entry does not exist. Would you like to add it ?');
     $this->addOption('notExistingAddValues', array('Yes', 'No'));
     $this->addOption('notExistingAddSelected', 0);
     $this->addOption('autocomplete', true);
     $this->addOption('autocomplete_max', 40);
     $this->addOption('autocomplete_minChars', 3);
     $this->addOption('autocomplete_autoFill', true);
     $this->addOption('nullable', false);
     $this->addOption('is_hidden', false);
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $routing = sfContext::getInstance()->getRouting();
     $request = sfContext::getInstance()->getRequest();
     $value = $routing->getCurrentInternalUri();
     if ($_SERVER['QUERY_STRING']) {
         if (false !== strpos($value, '?')) {
             $value .= '&';
         } else {
             $value .= '?';
         }
         $value .= $_SERVER['QUERY_STRING'];
     }
     if ($request->isMethod(sfWebRequest::POST)) {
         $value = 'default/csrfError';
     }
     $this->setAttribute('value', $value);
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addRequiredOption('model');
     $this->addOption('confirm_msg');
     $this->addOption('method', '__toString');
     $this->addOption('nullable', false);
     $this->addOption('deletable', false);
     $this->addOption('is_hidden', false);
     $this->addOption('button_is_hidden', false);
     $this->addRequiredOption('link_url');
     $this->addRequiredOption('box_title');
     $this->addOption('box_remove_title', 'Delete this object ?');
     //default value should not be used, because it will not be translated
     $this->addOption('button_class', 'button');
     $this->addOption('default_name', null);
     $this->addOption('url_params', array());
     $this->addOption('edit_route', null);
     $this->addOption('edit_route_params', array());
 }
 /**
  * Config
  *
  * @param array $options
  * @param array $attributes
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('canvas_class', 'google_map');
     $this->setOption('is_hidden', false);
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addRequiredOption('model');
     $this->addOption('method', '__toString');
     $this->addRequiredOption('link_url');
     $this->addOption('url_params', array());
     $this->addRequiredOption('partial_url');
     $this->addRequiredOption('partial_controler');
     $this->addRequiredOption('partial_action');
     $this->addOption('partial_url_params', array());
     $this->addRequiredOption('box_title');
     $this->addOption('button_is_hidden', false);
     $this->addOption('button_class', 'button');
     $this->addOption('default_name', null);
     $this->addOption('on_change_attached_to_id', null);
     $this->addOption('on_change_url_for_widget_renew', null);
     $this->addOption('on_change_url_for_widget_renew_params');
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  * asset_type: The asset type ('all' for all types)
  *
  * @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('asset_type', 'image');
     $this->addOption('form_name', 'this.previousSibling.previousSibling.form.name');
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  * asset_type: The asset type ('all' for all types)
  *
  * @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('asset_type', 'image');
 }