mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 2119. supporting php 5.4. modules and widgets.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12706 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ff75082eee
commit
8a7c28babc
90 changed files with 572 additions and 83 deletions
|
|
@ -135,6 +135,7 @@ class addonAdminModel extends addon
|
|||
if(!$xml_obj) return;
|
||||
|
||||
// DB is set to bring history
|
||||
$db_args = new stdClass();
|
||||
$db_args->addon = $addon;
|
||||
if($gtype == 'global') $output = executeQuery('addon.getAddonInfo',$db_args);
|
||||
else
|
||||
|
|
@ -144,6 +145,7 @@ class addonAdminModel extends addon
|
|||
}
|
||||
$extra_vals = unserialize($output->data->extra_vars);
|
||||
|
||||
$addon_info = new stdClass();
|
||||
if($extra_vals->mid_list)
|
||||
{
|
||||
$addon_info->mid_list = $extra_vals->mid_list;
|
||||
|
|
@ -178,7 +180,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -199,7 +201,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($extra_vars as $key => $val)
|
||||
{
|
||||
unset($obj);
|
||||
$obj = new stdClass();
|
||||
if(!$val->attrs->type) { $val->attrs->type = 'text'; }
|
||||
|
||||
$obj->group = $group->title->body;
|
||||
|
|
@ -222,6 +224,7 @@ class addonAdminModel extends addon
|
|||
|
||||
for($i = 0, $c = count($val->options); $i < $c; $i++)
|
||||
{
|
||||
$obj->options[$i] = new stdClass();
|
||||
$obj->options[$i]->title = $val->options[$i]->title->body;
|
||||
$obj->options[$i]->value = $val->options[$i]->attrs->value;
|
||||
}
|
||||
|
|
@ -247,7 +250,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($obj->author_list as $author)
|
||||
{
|
||||
unset($author_obj);
|
||||
$author_obj = new stdClass();
|
||||
$author_obj->name = $author->name->body;
|
||||
$author_obj->email_address = $author->attrs->email_address;
|
||||
$author_obj->homepage = $author->attrs->link;
|
||||
|
|
@ -268,7 +271,7 @@ class addonAdminModel extends addon
|
|||
|
||||
foreach($obj->log as $log)
|
||||
{
|
||||
unset($log_obj);
|
||||
$log_obj = new stdClass();
|
||||
$log_obj->text = $log->body;
|
||||
$log_obj->link = $log->attrs->link;
|
||||
$obj->logs[] = $log_obj;
|
||||
|
|
@ -346,6 +349,7 @@ class addonAdminModel extends addon
|
|||
*/
|
||||
function getInsertedAddons($site_srl = 0, $gtype = 'site')
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->list_order = 'addon';
|
||||
if($gtype == 'global') $output = executeQuery('addon.getAddons', $args);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue