/** * Constructor. Add 'class' selectableGroupWidget. * * @see sfFormWidget */ public function __construct($options = array(), $attributes = array()) { $class = 'selectableGroupWidget'; if (isset($attributes['class'])) { $attributes['class'] .= ' ' . $class; } else { $attributes['class'] = $class; } parent::__construct($options, $attributes); }
/** * @see sfWidget */ public function __construct($options = array(), $attributes = array()) { $options['choices'] = new sfCallable(array($this, 'getChoices')); parent::__construct($options, $attributes); }
/** * @see sfWidget */ public function __construct(\Doctrine\ORM\EntityManager $em, $options = array(), $attributes = array()) { $this->em = $em; $options['choices'] = new sfCallable(array($this, 'getChoices')); parent::__construct($options, $attributes); }
/** * @param array $options * @param array $attributes */ public function __construct($options = array(), $attributes = array()) { $options['choices'] = new sfCallable(array($this, 'getChoices')); $this->setCountriesFromCultureInfo(); parent::__construct($options, $attributes); }