Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss
This commit is contained in:
commit
6b2b579bab
30 changed files with 4763 additions and 2080 deletions
|
|
@ -29,16 +29,21 @@
|
|||
require_once NOALYSS_INCLUDE.'/lib/html_input.class.php';
|
||||
class ISelect extends HtmlInput
|
||||
{
|
||||
/**
|
||||
* Constructor , $p_value is supposed to be an array
|
||||
* @param string $p_name name of the element
|
||||
* @param array $p_value
|
||||
* @param DOMID $p_id
|
||||
*/
|
||||
function __construct($p_name="", $p_value="", $p_id="")
|
||||
{
|
||||
parent::__construct($p_name,$p_value,$p_id);
|
||||
$this->name=$p_name;
|
||||
if ( $p_value == "" || ! is_array($p_value)) {
|
||||
$this->value=array();
|
||||
} else {
|
||||
$this->value=$p_value;
|
||||
}
|
||||
$this->id=$p_id;
|
||||
parent::__construct($p_name, $p_value, $p_id);
|
||||
if ( $p_value =="" )
|
||||
{
|
||||
$this->value=[];
|
||||
} else {
|
||||
$this->value=$p_value;
|
||||
}
|
||||
}
|
||||
/*!\brief show the html input of the widget*/
|
||||
public function input($p_name=null,$p_value=null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue