Files
BW/html5-chat/classes/Conference.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

27 lines
598 B
PHP

<?php
@require_once('DB.php');
//ini_set('display_errors', 1);
//error_reporting(E_ALL);
class Conference {
private static $table = 'chat_conference';
/**
* @param $webmasterid
* @return conferenceid
*/
public static function start($roomid, $perfoermid, $userid ) {
$conf = DB::getOne(self::$table, "WHERE webmasterid = $webmasterid");
if (!$conf) {
$id = DB::insert(self::$table, array('webmasterid'=>$webmasterid));
$conf = DB::get($id, self::$table);
}
return $conf->id;
}
}