PluginProbe
CSS & JavaScript Toolbox / 9.0
CSS & JavaScript Toolbox v9.0
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | framework/php/includes.class.php +35 -35 trunk9.0 View file →
@@ -1,31 +1,31 @@
1 1 <?php
2 2 /**
3 -*
3 +*
4 4 */
5 5
6 6 /**
7 -*
7 +*
8 8 */
9 9 class CJTIncludes implements ArrayAccess {
10 -
10 +
11 11 /**
12 12 * put your comment there...
13 - *
13 + *
14 14 * @var mixed
15 15 */
16 16 private $name;
17 -
17 +
18 18 /**
19 19 * put your comment there...
20 - *
20 + *
21 21 * @var mixed
22 22 */
23 23 protected $list;
24 -
24 +
25 25 /**
26 26 * put your comment there...
27 - *
27 + *
28 28 */
29 29 public function __construct($name, $inits = array()) {
30 30 $this->name = $name;
31 31 // Copy all values!
@@ -30,12 +30,12 @@
30 30 $this->name = $name;
31 31 // Copy all values!
32 32 $this->setArray($inits);
33 33 }
34 -
34 +
35 35 /**
36 36 * put your comment there...
37 - *
37 + *
38 38 * @param mixed $key
39 39 * @param mixed $path
40 40 */
41 41 public function add($key, $path) {
@@ -40,29 +40,29 @@
40 40 */
41 41 public function add($key, $path) {
42 42 $this[$key] = $path;
43 43 }
44 -
44 +
45 45 /**
46 46 * put your comment there...
47 - *
47 + *
48 48 * @param mixed $name
49 49 */
50 50 public static function addShared($name) {
51 51 return self::$sharedList[$name] = new CJTIncludes(null);
52 52 }
53 -
53 +
54 54 /**
55 55 * put your comment there...
56 - *
56 + *
57 57 */
58 58 public function clear() {
59 59 $this->list = array();
60 60 }
61 -
61 +
62 62 /**
63 63 * put your comment there...
64 - *
64 + *
65 65 * @param mixed $file
66 66 */
67 67 public function exists($file) {
68 68 $result = array();
@@ -78,20 +78,20 @@
78 78 }
79 79 } while (prev($this->list));
80 80 return $result;
81 81 }
82 -
82 +
83 83 /**
84 84 * put your comment there...
85 - *
85 + *
86 86 */
87 87 public function hasPaths() {
88 88 return !empty($this->list);
89 89 }
90 -
90 +
91 91 /**
92 92 * put your comment there...
93 - *
93 + *
94 94 * @param mixed $file
95 95 */
96 96 public function import($file) {
97 97 $result = false;
@@ -102,45 +102,45 @@
102 102 }
103 103
104 104 /**
105 105 * put your comment there...
106 - *
106 + *
107 107 * @param mixed $path
108 108 */
109 - public function offsetExists($key): bool {
109 + public function offsetExists($key) {
110 110 return isset($this->list[$key]);
111 111 }
112 -
112 +
113 113 /**
114 114 * put your comment there...
115 - *
115 + *
116 116 * @param mixed $path
117 117 */
118 - public function offsetGet($key): bool {
118 + public function offsetGet($key) {
119 119 return $this->list[$key];
120 120 }
121 -
121 +
122 122 /**
123 123 * put your comment there...
124 - *
124 + *
125 125 * @param mixed $path
126 126 */
127 - public function offsetSet($key, $path): void {
128 - $this->list[$key] = $path;
127 + public function offsetSet($key, $path) {
128 + $this->list[$key] = $path;
129 129 }
130 130
131 131 /**
132 132 * put your comment there...
133 - *
133 + *
134 134 * @param mixed $path
135 135 */
136 - public function offsetUnset($key): void {
136 + public function offsetUnset($key) {
137 137 unset($this->list[$key]);
138 138 }
139 -
139 +
140 140 /**
141 141 * put your comment there...
142 - *
142 + *
143 143 * @param mixed $list
144 144 */
145 145 protected function setArray(& $list) {
146 146 foreach ($list as $key => $path) {
@@ -146,6 +146,6 @@
146 146 foreach ($list as $key => $path) {
147 147 $this[$key] = $path;
148 148 }
149 149 }
150 -
151 -} // End class.
150 +
151 +} // End class.