method seek documentation in bbn\Entities\Address

function($p, int $start = 0, int $limit = 100) { !empty($p['email']) || !empty($p['tel']) || !empty($p['fax']) ) ){ $cond = []; if ( !empty($p['email']) && \bbn\Str::isEmail($p['email']) ){ array_push($cond, ['email', 'LIKE', $p['email']]); } if ( !empty($p['adresse']) && strlen($p['adresse']) > 7 ){ array_push($cond, ['adresse', 'LIKE', '%'.$p['adresse'].'%']); } if ( !empty($p['tel']) && (strlen($p['tel']) >= 6) ){ if ( strlen($p['tel']) !== 10 ){ array_push($cond, ['tel', 'LIKE', $p['tel'].'%']); } else{ array_push($cond, ['tel', 'LIKE', $p['tel']]); } } if ( !empty($p['fax']) && (strlen($p['fax']) >= 6) ){ if ( strlen($p['fax']) !== 10 ){ array_push($cond, ['fax', 'LIKE', $p['fax'].'%']); } else{ array_push($cond, ['fax', 'LIKE', $p['fax']]); } } if ( !empty($p['ville']) ){ array_push($cond, ['ville', 'LIKE', $p['ville']]); } if ( !empty($p['cp']) ){ array_push($cond, ['cp', 'LIKE', $p['cp']]); } return $this->db->getColumnValues("bbn_addresses", 'id', $cond, ['adresse', 'ville'], $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.