method delete documentation in bbn\User\Preferences
Deletes the given preference.
Example
$pref->delete('3ad7768e30c311eca47652540000cfbe');
// (int) = 1;
function($id)
{
return $this->db->delete(
[
'table' => $this->class_cfg['table'],
'where' => [
'logic' => 'AND',
'conditions' => [
[
'field' => $this->fields['id'],
'value' => $id
],
[
'logic' => 'OR',
'conditions' => [
[
'field' => $this->fields['id_user'],
'value' => $this->id_user
], [
'field' => $this->fields['id_group'],
'value' => $this->id_group
], [
'field' => $this->fields['public'],
'value' => 1
]
]
]
]
]
]
);
}
Deletes the given preference. 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