1 | <?php |
||
15 | class MslsMain { |
||
16 | |||
17 | /** |
||
18 | * @var MslsOptions |
||
19 | */ |
||
20 | protected $options; |
||
21 | |||
22 | /** |
||
23 | * @var MslsBlogCollection |
||
24 | */ |
||
25 | protected $collection; |
||
26 | |||
27 | /** |
||
28 | * @param MslsOptions $options |
||
29 | * @param MslsBlogCollection $collection |
||
30 | */ |
||
31 | public function __construct( MslsOptions $options, MslsBlogCollection $collection ) { |
||
35 | |||
36 | /** |
||
37 | * Factory |
||
38 | * |
||
39 | * @codeCoverageIgnore |
||
40 | * |
||
41 | * @return MslsMain |
||
42 | */ |
||
43 | public static function init() { |
||
49 | |||
50 | /** |
||
51 | * Prints a message in the error log if WP_DEBUG is true |
||
52 | * |
||
53 | * @param mixed $message |
||
54 | */ |
||
55 | public function debugger( $message ) { |
||
63 | |||
64 | /** |
||
65 | * Get the input array |
||
66 | * @param int $object_id |
||
67 | * @return array |
||
68 | */ |
||
69 | public function get_input_array( $object_id ) { |
||
88 | |||
89 | /** |
||
90 | * Checks if the current input comes from the autosave-functionality |
||
91 | * @param int $post_id |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function is_autosave( $post_id ) { |
||
97 | |||
98 | /** |
||
99 | * Checks for the nonce in the INPUT_POST |
||
100 | * @return boolean |
||
101 | */ |
||
102 | public function verify_nonce() { |
||
108 | |||
109 | /** |
||
110 | * Delete |
||
111 | * @param int $object_id |
||
112 | * @codeCoverageIgnore |
||
113 | */ |
||
114 | public function delete( $object_id ) { |
||
117 | |||
118 | /** |
||
119 | * Save |
||
120 | * @param int $object_id |
||
121 | * @param string $class |
||
122 | * @codeCoverageIgnore |
||
123 | */ |
||
124 | protected function save( $object_id, $class ) { |
||
171 | |||
172 | } |
||
173 |