| 1 | <?php |
||
| 14 | class MslsContentTypes extends MslsRegistryInstance { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Request |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $request; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Types |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $types = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Factory method |
||
| 30 | * |
||
| 31 | * @codeCoverageIgnore |
||
| 32 | * |
||
| 33 | * @return MslsContentTypes |
||
| 34 | */ |
||
| 35 | public static function create() { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Check for post_type |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | public function is_post_type() { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Check for taxonomy |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | public function is_taxonomy() { |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Check if the current user can manage this content type |
||
| 63 | * |
||
| 64 | * Returns name of the content type if the user has access or an empty |
||
| 65 | * string if the user can not access |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function acl_request() { |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Getter |
||
| 75 | * @return array |
||
| 76 | */ |
||
| 77 | public function get() { |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Gets the request if it is an allowed content type |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function get_request() { |
||
| 90 | |||
| 91 | public function get_superglobals( $arr ) { |
||
| 97 | |||
| 98 | } |
||
| 99 |