method count documentation in bbn\Appui\Note

function() { if ($user = bbn\User::getInstance()) { $cf = &$this->class_cfg; $db = &$this->db; $sql = " SELECT COUNT(DISTINCT {$db->cfn($cf['arch']['notes']['id'],$cf['tables']['notes'], 1)}) FROM {$db->tsn($cf['tables']['notes'], 1)} JOIN {$db->tsn($cf['tables']['versions'], 1)} ON {$db->cfn($cf['arch']['notes']['id'],$cf['tables']['notes'], 1)} = {$db->cfn($cf['arch']['versions']['id_note'],$cf['tables']['versions'], 1)} WHERE {$db->cfn($cf['arch']['notes']['creator'],$cf['tables']['notes'], 1)} = ? OR {$db->cfn($cf['arch']['versions']['id_user'],$cf['tables']['versions'], 1)} = ?"; return $db->getOne($sql, $user->getId(), $user->getId()); } return null; }

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.