method getList documentation in bbn\User\Email

Returns a list of emails based on their folder.

function(string $id_folder, array $post) { if ($ids = $this->idsFromFolder($id_folder)) { $cfg = $this->class_cfg['arch']['users_emails']; $table = $this->class_cfg['tables']['users_emails']; $real_filter = [ 'logic' => 'AND', 'conditions' => [ $cfg['id_folder'] => $ids ] ]; if (!empty($post['filters'])) { if (!isset($post['filters']['conditions'])) { $post['filters'] = ['conditions' => $post['filters']]; } if (!empty($post['filters']['conditions'])) { $real_filter['conditions'][] = $post['filters']; } } $post['filters'] = $real_filter; $grid = new \bbn\Appui\Grid($this->db, $post, [ 'table' => $table, 'fields' => $cfg ]); if ($grid->check()) { return $grid->getDatatable(); } } return null; }

Returns a list of emails based on their folder. 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.