PluginProbe
Customify / 1.5.6
Customify v1.5.6
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / core / interfaces / Meta.php

Meta.php in Customify 1.5.6, at core/interfaces/Meta.php

58 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('ABSPATH') or die;
2
3 /**
4 * @package pixcustomify
5 * @category core
6 * @author Pixelgrade Team
7 * @copyright (c) 2013, Pixelgrade
8 */
9 interface PixCustomifyMeta {
10
11 /**
12 * @param string meta key
13 * @return boolean true if key exists, false otherwise
14 */
15 function has($key);
16
17 /**
18 * @return mixed value or default
19 */
20 function get($key, $default = null);
21
22 /**
23 * @return static $this
24 */
25 function set($key, $value);
26
27 /**
28 * Set the key if it's not already set.
29 *
30 * @param string key
31 * @param string value
32 */
33 function ensure($key, $value);
34
35 /**
36 * If the key is currently a non-array value it will be converted to an
37 * array maintaning the previous value (along with the new one).
38 *
39 * @param string name
40 * @param mixed value
41 * @return static $this
42 */
43 function add($name, $value);
44
45 /**
46 * @return array all metadata as array
47 */
48 function metadata_array();
49
50 /**
51 * Shorthand for a calling set on multiple keys.
52 *
53 * @return static $this
54 */
55 function overwritemeta($overwrites);
56
57 } # interface
58