method seek documentation in bbn\Entities\People
function($p, int $start = 0, int $limit = 100)
{
if (is_array($p) && ( !empty($p['nom'])
|| !empty($p['email'])
|| !empty($p['portable']) )
) {
$cond = [];
if (!empty($p['email']) && \bbn\Str::isEmail($p['email'])) {
array_push($cond, ['email', 'LIKE', $p['email']]);
}
if (!empty($p['nom'])) {
array_push($cond, ['nom', 'LIKE', $p['nom']]);
}
if (!empty($p['portable']) && (strlen($p['portable']) >= 6)) {
if (strlen($p['portable']) !== 10) {
array_push($cond, ['portable', 'LIKE', $p['portable'].'%']);
}
else{
array_push($cond, ['portable', 'LIKE', $p['portable']]);
}
}
if (!empty($p['prenom'])) {
array_push($cond, ['prenom', 'LIKE', $p['prenom']]);
}
return $this->db->getColumnValues("bbn_people", 'id', $cond, ['nom', 'prenom'], $limit, $start);
}
return false;
}
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.
© 2011-2025
BBN Solutions