*/ class LSformElement_select_object extends LSformElement { /* * Retourn les infos d'affichage de l'élément * * Cette méthode retourne les informations d'affichage de l'élement * * @retval array */ function getDisplay($refresh=NULL){ if ($refresh) { $this -> values = $this -> attr_html -> getValuesFromSession(); } $return = $this -> getLabelInfos(); // value $id=rand(); if (!$this -> isFreeze()) { $addBtn="
  • "._('Modifier')."\n \n
  • \n"; $delete=" "._("; $class='LSformElement_select_object'; } else { $class=''; $delete=''; $addBtn=''; } $return['html']="\n"; if (!$this -> isFreeze()) { $GLOBALS['LSsession'] -> addJSscript('LSform.js'); $GLOBALS['LSsession'] -> addJSscript('LSselect.js'); $GLOBALS['LSsession'] -> addJSscript('LSsmoothbox.js'); $GLOBALS['LSsession'] -> addCssFile('LSsmoothbox.css'); } return $return; } /** * Défini le type d'objet sélectionnable * * @param[in] $object string Le type d'object * * @retval void **/ function setSelectableObject($object) { $this -> selectableObject = $object; } } ?>