parameters['caddies'] */ public function get_value(){ global $dbh; if(!count($this->value) && count($this->parameters['caddies'])){ //partons du principe qu'on a des caddie... $query ="select distinct object_id from caddie_content where caddie_id in (".implode(",",$this->parameters['caddies']).")"; $result = pmb_mysql_query($query,$dbh); if(pmb_mysql_num_rows($result)){ while($row=pmb_mysql_fetch_object($result)){ $this->value[] =$row->object_id; } } } return $this->value; } public function get_form(){ global $msg,$charset; $form ="
".caddie::get_cart_list_multiple_selector('NOTI', 'docwatch_selector_notices_caddie_select[]', $this->parameters['caddies'])."
"; return $form; } public function set_from_form(){ global $docwatch_selector_notices_caddie_select; $this->parameters['caddies'] = $docwatch_selector_notices_caddie_select; } } // end of docwatch_selector_caddie