method get_st documentation in bbn\Entities\AbstractLinkType

function($id) { if ($id instanceof Link) { $r = $id; $link = (array)$id->link; } elseif ($r = $this->get($id)) { $link = (array)$r->link; } else { return null; } foreach ($link as $k => $v) { switch ($k) { case $this->fields['id_people']: $link[$k] = $r->people ? $r->people->fullname : null; break; case $this->fields['id_address']: $link[$k] = $r->address ? nl2br($r->address->fulladdress) : null; break; case $this->fields['id_entity']: $cfg = $this->class_cfg; $f = $cfg['arch']['entities']; $link[$k] = $this->db->selectOne($cfg['tables']['entities'], $f['name'], [ $f['id'] => $v ]); break; } } return $link; }

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.