array('type'=>'key', 'label' => 'Identifiant'), 'label' => array('type'=>'text','label' => 'Libellé'), 'hourByWeek' => array('type'=>'decimal','label' => 'Heures par semaine'), 'hourByDay' => array('type'=>'textarea','label' => 'Heures par jour'), 'dayByYear' => array('type'=>'decimal','label' => 'Jours par an'), 'recovertype' => array('type'=>'list','label' => 'Récuperation') ); //Colonnes indexées public $indexes = array(); //liste des Récuperation possibles public static function recovertypes($key=null){ $items = array( 'none' => array('label'=>'Aucune'), 'rtt' => array('label'=>'RTT'), ); if(!isset($key)) return $items; return isset($items[$key]) ? $items[$key] : array('label'=>'Non définis'); } } ?>