method getResult documentation in bbn\Appui\Observer
Returns the result of an observer's request from its UID.
function($id, bool $now = false)
{
$r = null;
if ($this->check()) {
if ($now && ($o = $this->get($id))) {
return $this->_exec($o['request'], $o['params']);
}
$r = $this->db->selectOne(
[
'tables' => ['o' => 'bbn_observers'],
'field' => 'IFNULL(ro.`result`, o.`result`)',
'join' => [
[
'table' => 'bbn_observers',
'alias' => 'ro',
'type' => 'LEFT',
'on' => [
[
'field' => 'o.id_alias',
'operator' => '=',
'exp' => 'ro.id'
]
],
'where' => [
'o.id' => $id
]
]
]
]
);
}
return $r;
}
Returns the result of an observer's request from its UID. 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-2023
BBN Solutions