*/ class LSformElement_text extends LSformElement { var $JSscripts = array(); var $CSSfiles = array(); var $fieldTemplate = 'LSformElement_text_field.tpl'; /** * Retourne les infos d'affichage de l'élément * * Cette méthode retourne les informations d'affichage de l'élement * * @retval array */ public function getDisplay(){ $return = $this -> getLabelInfos(); // value if (!$this -> isFreeze()) { if ($this -> getParam('html_options')) { LStemplate :: addJSconfigParam($this -> name, $this -> getParam('html_options')); } LSsession :: addHelpInfos( 'LSformElement_text', array( 'generate' => _('Generate the value') ) ); LStemplate :: addJSscript('LSformElement_text_field.js'); LStemplate :: addJSscript('LSformElement_text.js'); } foreach ($this -> JSscripts as $js) { LStemplate :: addJSscript($js); } foreach ($this -> CSSfiles as $css) { LStemplate :: addCssFile($css); } $return['html'] = $this -> fetchTemplate(); return $return; } }