getDestinations()); } } if(in_array($dest, $destinations)){ return true; } } } return false; } /** * Fonction générant les boutons de création */ public static function get_action_button($source, $id) { $button = ''; $mapper = form_mapper::getMapper($source); if($mapper) { $mapper->setId($id); $destinations = $mapper->getDestinations(); $i = 0; foreach($destinations as $destination){ $profile = $mapper->getProfiles($destination); if($profile){ if($profile[0]['is_dropdown']){ $button.= ''; $button.= '