XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Enum.class.php
Go to the documentation of this file.
1<?php
7
8if (!defined('XOOPS_ROOT_PATH')) {
9 exit;
10}
11
15interface Lenum_Status
16{
17 public const DELETED = 0;
18 public const REJECTED = 2;
19 public const PROGRESS = 5;
20 public const PUBLISHED = 9;
21}
22
26{
27 public const DELETED = 0;
28 public const BLOCKED = 1;
29 public const REJECTED = 2;
30 public const PROGRESS = 5;
31 public const FINISHED = 9;
32}
33
37{
38 public const GUEST = 0;
39 public const ASSOCIATE = 2;
40 public const REGULAR = 5;
41 public const STAFF = 7;
42 public const OWNER = 9;
43
44 public static function getList()
45 {
46 return [
47 self::GUEST => _GROUP_RANK_GUEST,
48 self::ASSOCIATE => _GROUP_RANK_ASSOCIATE,
49 self::REGULAR => _GROUP_RANK_REGULAR,
50 self::STAFF => _GROUP_RANK_STAFF,
51 self::OWNER => _GROUP_RANK_OWNER
52 ];
53 }
54}
55
56
58{
59 public const GIF = 1;
60 public const JPG = 2;
61 public const PNG = 3;
62
63 public static function getName(/*** Enum ***/ $ext)
64 {
65 switch ($ext) {
66 case self::GIF:
67 return 'gif';
68 break;
69 case self::JPG:
70 return 'jpg';
71 break;
72 case self::PNG:
73 return 'png';
74 break;
75 }
76 }
77}
static getName( $ext)