Added Dynamic Router Implementation to resolve gh-74
This commit is contained in:
@ -100,14 +100,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_view_table))
|
||||
{
|
||||
// Convert the join_view_table field to an array.
|
||||
$join_view_table = new Registry;
|
||||
$join_view_table->loadString($item->join_view_table);
|
||||
$item->join_view_table = $join_view_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_db_table))
|
||||
{
|
||||
// Convert the join_db_table field to an array.
|
||||
@ -148,6 +140,14 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->global = $global->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->join_view_table))
|
||||
{
|
||||
// Convert the join_view_table field to an array.
|
||||
$join_view_table = new Registry;
|
||||
$join_view_table->loadString($item->join_view_table);
|
||||
$item->join_view_table = $join_view_table->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_custom_get))
|
||||
{
|
||||
// base64 Decode php_custom_get.
|
||||
@ -184,6 +184,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$item->php_after_getitems = base64_decode($item->php_after_getitems);
|
||||
}
|
||||
|
||||
if (!empty($item->php_router_parse))
|
||||
{
|
||||
// base64 Decode php_router_parse.
|
||||
$item->php_router_parse = base64_decode($item->php_router_parse);
|
||||
}
|
||||
|
||||
if (!empty($item->php_calculation))
|
||||
{
|
||||
// base64 Decode php_calculation.
|
||||
@ -970,19 +976,6 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// Set the join_view_table items to data.
|
||||
if (isset($data['join_view_table']) && is_array($data['join_view_table']))
|
||||
{
|
||||
$join_view_table = new JRegistry;
|
||||
$join_view_table->loadArray($data['join_view_table']);
|
||||
$data['join_view_table'] = (string) $join_view_table;
|
||||
}
|
||||
elseif (!isset($data['join_view_table']))
|
||||
{
|
||||
// Set the empty join_view_table to data
|
||||
$data['join_view_table'] = '';
|
||||
}
|
||||
|
||||
// Set the join_db_table items to data.
|
||||
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
|
||||
{
|
||||
@ -1048,6 +1041,19 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$data['global'] = '';
|
||||
}
|
||||
|
||||
// Set the join_view_table items to data.
|
||||
if (isset($data['join_view_table']) && is_array($data['join_view_table']))
|
||||
{
|
||||
$join_view_table = new JRegistry;
|
||||
$join_view_table->loadArray($data['join_view_table']);
|
||||
$data['join_view_table'] = (string) $join_view_table;
|
||||
}
|
||||
elseif (!isset($data['join_view_table']))
|
||||
{
|
||||
// Set the empty join_view_table to data
|
||||
$data['join_view_table'] = '';
|
||||
}
|
||||
|
||||
// Set the php_custom_get string to base64 string.
|
||||
if (isset($data['php_custom_get']))
|
||||
{
|
||||
@ -1084,6 +1090,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
||||
$data['php_after_getitems'] = base64_encode($data['php_after_getitems']);
|
||||
}
|
||||
|
||||
// Set the php_router_parse string to base64 string.
|
||||
if (isset($data['php_router_parse']))
|
||||
{
|
||||
$data['php_router_parse'] = base64_encode($data['php_router_parse']);
|
||||
}
|
||||
|
||||
// Set the php_calculation string to base64 string.
|
||||
if (isset($data['php_calculation']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user