*/ 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 */ function getDisplay(){ $return = $this -> getLabelInfos(); // value if (!$this -> isFreeze()) { if ($this -> getParam('html_options')) { LSsession :: addJSconfigParam($this -> name, $this -> getParam('html_options')); } LSsession :: addHelpInfos( 'LSformElement_text', array( 'generate' => _('Generate the value') ) ); LSsession :: addJSscript('LSformElement_text_field.js'); LSsession :: addJSscript('LSformElement_text.js'); } foreach ($this -> JSscripts as $js) { LSsession :: addJSscript($js); } foreach ($this -> CSSfiles as $css) { LSsession :: addCssFile($css); } $return['html'] = $this -> fetchTemplate(); return $return; } } ?>