Пример #1
0
 /**
  * Class Constructor
  * @param  $name Widget's name
  */
 public function __construct($name)
 {
     // executes the parent class constructor
     parent::__construct($name);
     $this->id = 'tmultisearch' . uniqid();
     $this->height = 100;
     $this->minLength = 5;
     $this->maxSize = 0;
     if (LANG !== 'en') {
         TPage::include_js('lib/adianti/include/tmultisearch/select2_locale_' . LANG . '.js');
     }
     // creates a <select> tag
     $this->tag = new TElement('input');
     $this->tag->{'type'} = 'hidden';
     $this->tag->{'component'} = 'multisearch';
 }