It looks like you're new here. If you want to get involved, click one of these buttons!
$vars ['emissions'] = $CI->emissions_model->find_all(array(),null,3,null,'array');
class Emissions_model extends Base_module_model {
protected $key_field = 'em_id';
function __construct()
{
parent::__construct('emissions'); // table name
}
function list_items($limit = NULL, $offset = NULL, $col = 'em_titre', $order = 'asc')
{
$this->db->join('series', 'series.ser_identifiant = emissions.em_identifiant', 'left');
$this->db->select('em_id, em_titre "TITRE DE L\'\ÉMISSION", ser_nom AS SÉRIE, em_annee AS ANNÉE, em_mois AS MOIS, em_jour AS JOUR', FALSE);
$data = parent::list_items($limit, $offset, $col, $order);
return $data;
}
function _common_query()
{
parent::_common_query(); // to do active and published
$this->db->join('series', 'series.ser_identifiant = emissions.em_identifiant', 'left');
$this->db->order_by('em_lastmod asc');
}
}
class Emission_model extends Base_module_record {
function get_emission_formatted()
{
}
}
?>
Comments