aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/User/Factory.php
blob: 80e6b493910052ea80b5757640fb7fbb7894d18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
namespace User;

class Factory extends \ItemFactory {
	public static function buildBySlug($slug): \Item {
		return self::build(Item::getIDByField('slug', $slug, \Application::getDatabase()));
	}

	public static function buildByUsername($username): \Item {
		return self::build(Item::getIDByField('username', $username, \Application::getDatabase()));
	}
}
?>