method getLatest documentation in bbn\Appui\Cms

Returns a list of the latest published articles

function(array $filter = [], int $limit = 20, int $start = 0) { $cfg = $this->getLastVersionCfg(false, true, $filter); $cfg['order'] = [['field' => 'bbn_events.start', 'dir' => 'DESC']]; $cfg['limit'] = $limit; $cfg['start'] = $start; $db =& $this->db; $idx = md5(json_encode($filter)); $total = $this->cacheGetSet(function() use (&$db, $cfg) { return $db->count($cfg); }, $idx, 'total', 20); return [ 'data' => $this->db->rselectAll($cfg), 'query' => $this->db->last(), 'total' => $total ]; }

Returns a list of the latest published articles 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.