method checkResult documentation in bbn\Appui\Observer

Confronts the current result with the one kept in database.

function($id) { if ( $d = $this->get($id) ){ $t = new bbn\Util\Timer(); $t->start(); $res = $this->_exec($d['request'], $d['params']); $duration = (int)ceil($t->stop() * 1000); if ( $res !== $d['result'] ){ $this->db->update('bbn_observers', [ 'result' => $res, 'duration' => $duration ], [ 'id' => $id ]); return false; } return true; } }

Confronts the current result with the one kept in database. 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.