Example #1
0
 /**
  * Method to get the field input markup.
  *
  * @access	public
  *
  * @return	string	The field input markup.
  *
  * @since	11.1
  */
 public function getInput()
 {
     if (!$this->canView()) {
         return;
     }
     //Loads the front javascript and HTML validator (inspirated by JDom.)
     //Hidden messages strings are created in order to fill the javascript message alert.
     //When an error occurs, the messages appears under each field.
     //On loading, the informations messages for each field are shown when values are empties.
     //Each validation occurs on the 'change' event, and merged together in alert box on form submit.
     //If the field is required without validation rule, the helper is called only for the required message implementation.
     $input = $this->input;
     $input .= RtiprintHelperHtmlValidator::loadValidators($this->element, $this->id);
     return $input;
 }