added some updated notes to the paths area
This commit is contained in:
@ -95,6 +95,14 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfoldersfullpath))
|
||||
{
|
||||
// Convert the addfoldersfullpath field to an array.
|
||||
$addfoldersfullpath = new Registry;
|
||||
$addfoldersfullpath->loadString($item->addfoldersfullpath);
|
||||
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addurls))
|
||||
{
|
||||
// Convert the addurls field to an array.
|
||||
@ -103,14 +111,6 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$item->addurls = $addurls->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfiles))
|
||||
{
|
||||
// Convert the addfiles field to an array.
|
||||
$addfiles = new Registry;
|
||||
$addfiles->loadString($item->addfiles);
|
||||
$item->addfiles = $addfiles->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfilesfullpath))
|
||||
{
|
||||
// Convert the addfilesfullpath field to an array.
|
||||
@ -119,20 +119,20 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$item->addfilesfullpath = $addfilesfullpath->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfiles))
|
||||
{
|
||||
// Convert the addfiles field to an array.
|
||||
$addfiles = new Registry;
|
||||
$addfiles->loadString($item->addfiles);
|
||||
$item->addfiles = $addfiles->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfolders))
|
||||
{
|
||||
// Convert the addfolders field to an array.
|
||||
$addfolders = new Registry;
|
||||
$addfolders->loadString($item->addfolders);
|
||||
$item->addfolders = $addfolders->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addfoldersfullpath))
|
||||
{
|
||||
// Convert the addfoldersfullpath field to an array.
|
||||
$addfoldersfullpath = new Registry;
|
||||
$addfoldersfullpath->loadString($item->addfoldersfullpath);
|
||||
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->id))
|
||||
@ -814,6 +814,19 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// Set the addfoldersfullpath items to data.
|
||||
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
|
||||
{
|
||||
$addfoldersfullpath = new JRegistry;
|
||||
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
|
||||
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
|
||||
}
|
||||
elseif (!isset($data['addfoldersfullpath']))
|
||||
{
|
||||
// Set the empty addfoldersfullpath to data
|
||||
$data['addfoldersfullpath'] = '';
|
||||
}
|
||||
|
||||
// Set the addurls items to data.
|
||||
if (isset($data['addurls']) && is_array($data['addurls']))
|
||||
{
|
||||
@ -827,19 +840,6 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$data['addurls'] = '';
|
||||
}
|
||||
|
||||
// Set the addfiles items to data.
|
||||
if (isset($data['addfiles']) && is_array($data['addfiles']))
|
||||
{
|
||||
$addfiles = new JRegistry;
|
||||
$addfiles->loadArray($data['addfiles']);
|
||||
$data['addfiles'] = (string) $addfiles;
|
||||
}
|
||||
elseif (!isset($data['addfiles']))
|
||||
{
|
||||
// Set the empty addfiles to data
|
||||
$data['addfiles'] = '';
|
||||
}
|
||||
|
||||
// Set the addfilesfullpath items to data.
|
||||
if (isset($data['addfilesfullpath']) && is_array($data['addfilesfullpath']))
|
||||
{
|
||||
@ -853,6 +853,19 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
$data['addfilesfullpath'] = '';
|
||||
}
|
||||
|
||||
// Set the addfiles items to data.
|
||||
if (isset($data['addfiles']) && is_array($data['addfiles']))
|
||||
{
|
||||
$addfiles = new JRegistry;
|
||||
$addfiles->loadArray($data['addfiles']);
|
||||
$data['addfiles'] = (string) $addfiles;
|
||||
}
|
||||
elseif (!isset($data['addfiles']))
|
||||
{
|
||||
// Set the empty addfiles to data
|
||||
$data['addfiles'] = '';
|
||||
}
|
||||
|
||||
// Set the addfolders items to data.
|
||||
if (isset($data['addfolders']) && is_array($data['addfolders']))
|
||||
{
|
||||
@ -864,19 +877,6 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
|
||||
{
|
||||
// Set the empty addfolders to data
|
||||
$data['addfolders'] = '';
|
||||
}
|
||||
|
||||
// Set the addfoldersfullpath items to data.
|
||||
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
|
||||
{
|
||||
$addfoldersfullpath = new JRegistry;
|
||||
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
|
||||
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
|
||||
}
|
||||
elseif (!isset($data['addfoldersfullpath']))
|
||||
{
|
||||
// Set the empty addfoldersfullpath to data
|
||||
$data['addfoldersfullpath'] = '';
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
|
Reference in New Issue
Block a user