mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
NOISSUE 사용되지 않는 모듈, 애드온 등의 history 정보 파싱 로직 제거.
This commit is contained in:
parent
82198b53c1
commit
3430d4fae5
11 changed files with 32 additions and 610 deletions
|
|
@ -296,79 +296,6 @@ class addonAdminModel extends addon
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// history
|
||||
if($xml_obj->history)
|
||||
{
|
||||
if(!is_array($xml_obj->history))
|
||||
{
|
||||
$history = array();
|
||||
$history[] = $xml_obj->history;
|
||||
}
|
||||
else
|
||||
{
|
||||
$history = $xml_obj->history;
|
||||
}
|
||||
|
||||
$addon_info->history = array();
|
||||
foreach($history as $item)
|
||||
{
|
||||
$obj = new stdClass();
|
||||
|
||||
if($item->author)
|
||||
{
|
||||
if(!is_array($item->author))
|
||||
{
|
||||
$obj->author_list = array();
|
||||
$obj->author_list[] = $item->author;
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj->author_list = $item->author;
|
||||
}
|
||||
|
||||
$obj->author = array();
|
||||
foreach($obj->author_list as $author)
|
||||
{
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
$obj->author[] = $author_obj;
|
||||
}
|
||||
}
|
||||
|
||||
$obj->name = $item->name->body;
|
||||
$obj->email_address = $item->attrs->email_address;
|
||||
$obj->homepage = $item->attrs->link;
|
||||
$obj->version = $item->attrs->version;
|
||||
$obj->date = $item->attrs->date;
|
||||
$obj->description = $item->description->body;
|
||||
|
||||
if($item->log)
|
||||
{
|
||||
if(!is_array($item->log))
|
||||
{
|
||||
$obj->log = array();
|
||||
$obj->log[] = $item->log;
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj->log = $item->log;
|
||||
}
|
||||
|
||||
$obj->logs = array();
|
||||
foreach($obj->log as $log)
|
||||
{
|
||||
$log_obj = new stdClass();
|
||||
$log_obj->text = $log->body;
|
||||
$log_obj->link = $log->attrs->link;
|
||||
$obj->logs[] = $log_obj;
|
||||
}
|
||||
}
|
||||
$addon_info->history[] = $obj;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue