mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4318 201d5d3c-b55e-5fd7-737f-ddc643e51545
17 lines
528 B
PHP
17 lines
528 B
PHP
<?php
|
|
function getListedItems($menu, &$listed_items, &$mid_list) {
|
|
if(!count($menu)) return;
|
|
foreach($menu as $node_srl => $item) {
|
|
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $item['url'])) {
|
|
$mid = $item['mid'] = $item['url'];
|
|
$mid_list[$node_srl] = $mid;
|
|
} else {
|
|
$mid = $item['mid'] = null;
|
|
}
|
|
|
|
$listed_items[$mid] = $item;
|
|
getListedItems($item['list'], $listed_items, $mid_list);
|
|
}
|
|
}
|
|
|
|
?>
|