1 | <?php |
||
14 | final class Organisations extends StarCitizenAbstract |
||
15 | { |
||
16 | |||
17 | const ORG = 'single_organization'; |
||
18 | const MEMBERS = 'organization_members'; |
||
19 | const BASEPROFILE = Organisations::ORG; |
||
20 | |||
21 | /** |
||
22 | * Model map |
||
23 | */ |
||
24 | const MODELS = [ |
||
25 | Organisations::ORG => '\Organisation', |
||
26 | Organisations::MEMBERS => ['\OrgMember', '', 'handle'] |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected static $system = "organizations"; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @param $id |
||
37 | * @param bool $cache |
||
38 | * @param bool $raw |
||
39 | * |
||
40 | * @return bool|Organisation |
||
41 | */ |
||
42 | 3 | final public static function findOrg($id, $cache = false, $raw = false) |
|
46 | |||
47 | /** |
||
48 | * @param $id |
||
49 | * @param bool $cache |
||
50 | * @param bool $raw |
||
51 | * |
||
52 | * @return bool|Store |
||
53 | */ |
||
54 | 3 | final public static function findMembers($id, $cache = false, $raw = false) |
|
58 | } |