public function __construct($options = array(), $messages = array()) { if (isset($options['choices'])) { $options['choices'] = array_merge($options['choices'], array_keys(dmWidgetFormChoiceEasing::$easing)); } else { $options['choices'] = array_keys(dmWidgetFormChoiceEasing::$easing); } parent::__construct($options, $messages); }
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[$choiceName] = $choiceName; } } $options['choices'] = array_combine($choices, $choices); 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); }