/**
  * Constructor
  *
  * @param QControl|QForm $objParentObject Parent of this textbox
  * @param null|string    $strControlId    Desired control ID for the textbox
  */
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     // borrows too short and too long labels from super class
     $this->strLabelForTooShort = QApplication::Translate('Enter at least %s items.');
     $this->strLabelForTooLong = QApplication::Translate('Enter no more than %s items.');
 }
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     $this->strLabelForInvalid = QApplication::Translate('Invalid Integer');
     $this->strLabelForLess = QApplication::Translate('Value must be less than %s');
     $this->strLabelForGreater = QApplication::Translate('Value must be greater than %s');
 }
Example #3
0
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strLabelForInvalid = QApplication::Translate('Invalid URL address');
 }
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strLabelForInvalid = QApplication::Translate('For example, "Mar 20, 4:30pm" or "Mar 20"');
 }
Example #5
0
 public function __construct($objParentObject, $strControlId = null)
 {
     try {
         parent::__construct($objParentObject, $strControlId);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
     $this->strLabelForInvalid = QApplication::Translate('Invalid Float');
     $this->strLabelForLess = QApplication::Translate('Value must be less than %s');
     $this->strLabelForGreater = QApplication::Translate('Value must be greater than %s');
 }
 /**
  * Constructor
  *
  * @param QControl|QForm $objParentObject
  * @param null|string    $strControlId
  */
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     $this->strLabelForInvalid = QApplication::Translate('Invalid Web Address');
     $this->strTextMode = QTextMode::Url;
 }
Example #7
0
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     $this->strInstructions = QApplication::Translate('Tags <b> <u> <i> <br> <code> and <http://...> are allowed.  Use ** at the beginning of any line for a bulleted list.');
 }
 public function __construct($objParentObject, $strControlId = null)
 {
     parent::__construct($objParentObject, $strControlId);
     $this->TextMode = QTextMode::Tel;
     $this->AddPluginJavascriptFile("phonetextbox", "jquery.phonetextbox.js");
 }
Example #9
0
 public function __construct($objParent, $strControlId = null)
 {
     parent::__construct($objParent, $strControlId);
     Bootstrap::LoadJS($this);
     $this->AddCssClass(Bootstrap::FormControl);
 }