<?php 
/**
 * All application-specific user methods should go in this class. Do not modify classes/core/baseuser.php.
 * 
 */
class user extends baseuser {
	
	const UNKNOWNUSER_USERNAME='unknownuser';

	/**
	 * Gets the plates owned by the specified user.
	 * @param int $id The ID of the user.
	 * @param array $request The request parameters, e.g., pagination.
	 * @return array|null
	 * @throws BadRequestException
	 * @throws ServerException
	 */
	public static function getplates(int $id, array $request=[]): ?array {
		return plate::getByProperty('ownerid', $id,$request);
	}

}