/**
  * Konstruktor
  * @param <type> $arrAttributes
  */
 public function __construct($arrAttributes = false)
 {
     parent::__construct($arrAttributes);
     $this->maxlength = '10';
     $this->import('Database');
     $this->import('Input');
 }
 public function __construct($arrAttributes = null)
 {
     parent::__construct($arrAttributes);
     $this->evals = $arrAttributes;
     if (!$this->dateExcludeCSS) {
         $GLOBALS['TL_CSS'][] = 'composer/vendor/eternicode/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css';
     }
     // include jquery into backend
     if (TL_MODE == 'BE') {
         if (!is_array($GLOBALS['TL_JAVASCRIPT'])) {
             $GLOBALS['TL_JAVASCRIPT'] = array();
         }
         array_unshift($GLOBALS['TL_JAVASCRIPT'], 'system/modules/bootstrap-datepicker/assets/jquery.noconflict.js');
         $jquery_src = 'assets/jquery/core/' . reset(scandir(TL_ROOT . '/assets/jquery/core', 1)) . '/jquery.min.js';
         array_unshift($GLOBALS['TL_JAVASCRIPT'], $jquery_src);
     }
     if (!$this->dateExcludeJS) {
         $GLOBALS['TL_JAVASCRIPT'][] = 'composer/vendor/eternicode/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js';
         $GLOBALS['TL_JAVASCRIPT'][] = 'composer/vendor/eternicode/bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js';
     }
 }
Beispiel #3
0
 function __construct($Name, $Label, $Minimum, $Maximum, $Value = NULL)
 {
     parent::__construct($Name, $Label, 4, $Value);
     $this->InputType = 'number';
     $this->Attributes['min'] = $Minimum;
     $this->Attributes['max'] = $Maximum;
     $this->Pattern = "/^[0-9]*\$/";
 }
 public function __construct($arrAttributes = null)
 {
     parent::__construct($arrAttributes);
     array_unshift($GLOBALS['TL_JAVASCRIPT'], 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCTzc9PNH252fKi7Qdyg63wymXK2OXr4V4&libraries=places');
 }
 /**
  * Always set rgxp to `date`
  *
  * @param array $arrAttributes An optional attributes array
  */
 public function __construct($arrAttributes = null)
 {
     parent::__construct($arrAttributes);
     $this->rgxp = 'date';
 }