22 lines
479 B
PHP
Executable file
22 lines
479 B
PHP
Executable file
<?php
|
|
|
|
function getFilesInXML($files)
|
|
{
|
|
$values = array();
|
|
|
|
if (isset($files->file)) {
|
|
foreach ($files->file as $file) {
|
|
if ((string)$file == false) {
|
|
continue;
|
|
}
|
|
|
|
$values[] = array(
|
|
'name' => (string)$file,
|
|
'description' => $file['description'],
|
|
'path' => (string)$file
|
|
);
|
|
}
|
|
}
|
|
|
|
return $values;
|
|
}
|