method getFull documentation in bbn\Appui\Event
Gets an event with the recurring details.
function(string $id)
{
if ( Str::isUid($id) ){
$rt =& $this->class_cfg['tables']['recurring'];
$rf =& $this->class_cfg['arch']['recurring'];
$ot =& $this->class_cfg['tables']['options'];
return $this->db->rselect([
'table' => $this->class_table,
'fields' => [
$this->db->colFullName($this->fields['id'], $this->class_table),
$this->db->colFullName($this->fields['id_parent'], $this->class_table),
$this->fields['id_type'],
$this->fields['start'],
$this->fields['end'],
$this->fields['name'],
$this->fields['recurring'],
$this->fields['cfg'],
$rf['type'],
$rf['interval'],
$rf['occurrences'],
$rf['until'],
$rf['wd'],
$rf['mw'],
$rf['md'],
$rf['ym']
],
'join' => [[
'table' => $rt,
'type' => 'left',
'on' => [
'conditions' => [[
'field' => $this->db->colFullName($this->fields['id'], $this->class_table),
'exp' => $this->db->colFullName($rf['id_event'], $rt),
]]
]
], [
'table' => $ot,
'on' => [
'conditions' => [[
'field' => $this->fields['id_type'],
'exp' => $this->db->colFullName($this->class_cfg['arch']['options']['id'], $ot),
]]
]
]],
'where' => [
$this->db->colFullName($this->fields['id'], $this->class_table) => $id
]
]);
}
return null;
}
Gets an event with the recurring details. 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-2024
BBN Solutions