Exemple #1
0
 public function create(Mesour\UI\Control $control, $handle, $args = [])
 {
     if (!is_string($handle)) {
         throw new Mesour\InvalidArgumentException(sprintf('Second parameter handle must be string. %s given.', gettype($handle)));
     }
     $linkName = $control->createLinkName();
     $newArgs = [];
     foreach ($args as $key => $value) {
         $newArgs['m_' . $linkName . '-' . $key] = $value;
     }
     $args = array_merge_recursive($newArgs, $this->users_args);
     $args['m_do'] = $linkName . '-' . $handle;
     return $this->createUrl($args);
 }
Exemple #2
0
 public function create()
 {
     parent::create();
     $wrapper = $this->getControlPrototype();
     $wrapper->setText($this->text);
     return $wrapper;
 }
Exemple #3
0
 public function __construct($name = null, Mesour\Components\ComponentModel\IContainer $parent = null)
 {
     parent::__construct($name, $parent);
     foreach ($this->defaults as $key => $default) {
         $this->setOption($key, $default);
     }
     $this->options = array_merge($this->privateDefaults, $this->options);
 }