method isPublished documentation in bbn\Appui\Cms

If the note has a corresponding event in bbn_events and the date of start is before now,

and the date of end if isset is after now and the note has an url it returns true

function(string $id_note) { $now = strtotime(date('Y-m-d H:i:s')); $cfg = $this->class_cfg; if ($event = $this->getEvent($id_note)) { if ( isset($event[$cfg['arch']['events']['start']]) && (is_null($event[$cfg['arch']['events']['end']]) || (strtotime($event[$cfg['arch']['events']['end']]) > $now)) && $this->note->hasUrl($id_note) ) { return true; } } return false; }

If the note has a corresponding event in bbn_events and the date of start is before now, 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.