public function __construct($options = array(), $attributes = array()) { if (isset($options['choices'])) { $options['choices'] = array_merge($options['choices'], dmContext::getInstance()->getServiceContainer()->getService('i18n')->translateArray(dmWidgetFormChoiceEasing::$easing)); } else { $options['choices'] = dmContext::getInstance()->getServiceContainer()->getService('i18n')->translateArray(dmWidgetFormChoiceEasing::$easing); } parent::__construct($options, $attributes); }
public function __construct($options = array(), $attributes = array()) { $this->addOption('empty_value', ' '); $this->addOption('collapse', false); $this->addOption('restrict_size', false); $this->addOption('restricted_size', 125); $this->addOption('add_hidden_input', true); parent::__construct($options, $attributes); $this->setOption('multiple', true); }
public function __construct($options = array(), $attributes = array()) { $choices = array(); $modules = array(); foreach (dmContext::getInstance()->getModuleManager()->getModules() as $module) { $actions = $module->getActions(); foreach ($actions as $action) { $choiceName = $module->getName() . '|' . $action['name']; $choices[$module->getName() . '|' . $action['name']] = $module->getName() . ' | ' . $action['name']; } } $options['choices'] = $choices; parent::__construct($options, $attributes); }
/** * @see sfWidget */ public function __construct($options = array(), $attributes = array()) { $options['choices'] = array(); parent::__construct($options, $attributes); }
/** * @see sfWidget */ public function __construct(\Doctrine\ORM\EntityManager $em, $options = array(), $attributes = array()) { $this->em = $em; $options['choices'] = array(); parent::__construct($options, $attributes); }
/** * @see sfWidget */ public function __construct($options = array(), $attributes = array()) { $options['choices'] = new sfCallable(array($this, 'getChoices')); parent::__construct($options, $attributes); }
public function __construct($options = array(), $attributes = array()) { $modules = dmContext::getInstance()->getModuleManager()->getModules(); $options['choices'] = array_combine($modules, $modules); parent::__construct($options, $attributes); }