method get_info documentation in bbn\Entities\People

function($id, $id_adherent = 0) { $d = $this->db->rselect("bbn_people", [], ['id' => $id]); if ($d) { if (!empty($d['portable'])) { $d['portable'] = (string)$d['portable']; } if (isset($d['cfg'])) { $d['cfg'] = json_decode($d['cfg'], true); if (is_array($d['cfg'])) { foreach ($d['cfg'] as $i => $val){ $d[$i] = $val; } } unset($d['cfg']); } $d['fnom'] = $this->fnom($d); $d['ffnom'] = $this->fnom($d, 1); if (!isset($d['inscriptions'])) { $d['inscriptions'] = []; } if ($id_adherent) { $d['roles'] = $this->db->getColumnValues( [ 'tables' => ['apst_liens'], 'fields' => ['bbn_options.text'], 'join' => [ [ 'table' => 'bbn_people', 'on' => [ 'conditions' => [ [ 'field' => 'bbn_people.id', 'operator' => 'eq', 'exp' => 'apst_liens.id_tiers' ] ], 'logic' => 'AND' ] ], [ 'table' => 'bbn_options', 'on' => [ 'conditions' => [ [ 'field' => 'bbn_options.id', 'operator' => 'eq', 'exp' => 'apst_liens.link_type' ] ], 'logic' => 'AND' ] ] ], 'where' => [ 'apst_liens.id_adherent' => $id_adherent, 'apst_liens.id_lieu' => $id ] ] ); } } return $d; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.