classes/uix/ui/control/item.php 1 location
|
@@ 127-139 (lines=13) @@
|
| 124 |
|
* @access public |
| 125 |
|
* @return array array of the data structure |
| 126 |
|
*/ |
| 127 |
|
public function drill_in( $array, $tag = '{{json @root' ) { |
| 128 |
|
|
| 129 |
|
$back = array(); |
| 130 |
|
foreach ( $array as $key => $value ) { |
| 131 |
|
if ( is_array( $value ) && ! empty( $value ) ) { |
| 132 |
|
$back[ $key ] = $this->drill_in( $value, $tag . '.' . $key ); |
| 133 |
|
} else { |
| 134 |
|
$back[ $key ] = $tag . '.' . $key . '}}'; |
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
return $back; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
/** |
| 142 |
|
* Sends the items json code back to the browser |
classes/uix/ui/control/layout.php 1 location
|
@@ 285-296 (lines=12) @@
|
| 282 |
|
* @access public |
| 283 |
|
* @return array array of the data structure |
| 284 |
|
*/ |
| 285 |
|
public function drill_in( $array, $tag = null ) { |
| 286 |
|
$back = array(); |
| 287 |
|
foreach ( $array as $key => $value ) { |
| 288 |
|
if ( is_array( $value ) && ! empty( $value ) ) { |
| 289 |
|
$back[ $key ] = $this->drill_in( $value, $tag . '.' . $key ); |
| 290 |
|
} else { |
| 291 |
|
$back[ $key ] = $tag . '.' . $key . '}}'; |
| 292 |
|
} |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
return $back; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
/** |
| 299 |
|
* Sets styling colors |