/** * Our construct. * * Queue constructor. * * @param Database $database * * @param $table */ public function __construct(Database $database, $table) { /** * Lets create our parents database information. */ parent::__construct($database, $table); }
/** * Deletes a session at the given id. * * @param $sessionid */ public function DeleteSession($sessionid) { if ($this->query == null) { return; } $array = ["sessionid" => $sessionid]; $this->query->Query()->where($array)->delete(); }
/** * Deletes the player at the given index. * * @param $playerid * * @return null */ public function DeletePlayer($playerid) { if ($this->capsule == null) { return null; } $array = ["playerid" => $playerid]; $this->query->Query()->where($array)->delete(); }
/** * Deletes that user from the database. * * @param $userid */ public function DeleteUser($userid) { $array = ["userid" => $userid]; $this->query->Query()->where($array)->delete(); }