available_columns = array('main_fields' => array( 'numero' => '38', 'num_acte_parent' => 'acquisition_act_num_cde', 'num_fournisseur' => 'acquisition_ach_fou2', 'date_acte' => 'acquisition_fac_date_rec', 'statut' => 'acquisition_statut' ) ); } protected function init_default_columns() { $this->add_column('numero'); $this->add_column('num_acte_parent'); $this->add_column('num_fournisseur'); $this->add_column('date_acte'); $this->add_column('statut'); $this->add_column_print('livr'); } protected function get_cell_content($object, $property) { global $msg, $charset; $content = ''; switch($property) { case 'num_acte_parent': $id_cde = liens_actes::getParent($object->id_acte); $cde = new actes($id_cde); $content .= $cde->numero; break; default : $content .= parent::get_cell_content($object, $property); break; } return $content; } public function get_type_acte() { return TYP_ACT_LIV; } public function get_initial_name() { return 'liv'; } }