Added the phpseclib librarie for ssh/ftps server protocol as explained in gh-230. Extended the Component Files & Folders concept to allow adding files and folder from anywhere where PHP/Apache has permission to read, resolved gh-231

This commit is contained in:
2018-02-16 23:53:43 +02:00
parent 0c798d9579
commit c7551c6edd
63 changed files with 37151 additions and 166 deletions

View File

@ -111,6 +111,22 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
$item->addfolders = $addfolders->toArray();
}
if (!empty($item->addfilesfullpath))
{
// Convert the addfilesfullpath field to an array.
$addfilesfullpath = new Registry;
$addfilesfullpath->loadString($item->addfilesfullpath);
$item->addfilesfullpath = $addfilesfullpath->toArray();
}
if (!empty($item->addfoldersfullpath))
{
// Convert the addfoldersfullpath field to an array.
$addfoldersfullpath = new Registry;
$addfoldersfullpath->loadString($item->addfoldersfullpath);
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
}
// update the fields
$objectUpdate = new stdClass();
$objectUpdate->id = (int) $item->id;
@ -856,6 +872,32 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
{
// Set the empty addfolders to data
$data['addfolders'] = '';
}
// Set the addfilesfullpath items to data.
if (isset($data['addfilesfullpath']) && is_array($data['addfilesfullpath']))
{
$addfilesfullpath = new JRegistry;
$addfilesfullpath->loadArray($data['addfilesfullpath']);
$data['addfilesfullpath'] = (string) $addfilesfullpath;
}
elseif (!isset($data['addfilesfullpath']))
{
// Set the empty addfilesfullpath to data
$data['addfilesfullpath'] = '';
}
// 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

View File

@ -89,6 +89,20 @@
required="true"
readonly="true"
button="false" />
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders_fullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders_fullpath" />
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files_fullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files_fullpath" />
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders"
@ -96,13 +110,6 @@
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FOLDERS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders" />
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files" />
<!-- Addfiles Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfiles"
@ -194,6 +201,108 @@
class="inputbox" />
</form>
</field>
<!-- Addfilesfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfilesfullpath_modal"
repeat="true">
<!-- Filepath Field. Type: Text. (joomla)-->
<field type="text"
name="filepath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FILEPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_NOTE_ADD_FILES_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files" />
<!-- Addfoldersfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_ADDFOLDERSFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfoldersfullpath_modal"
repeat="true">
<!-- Folderpath Field. Type: Text. (joomla)-->
<field type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_FOLDERPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -89,13 +89,13 @@
default="0"
required="true"
readonly="true" />
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla)-->
<!-- Note_add_folders_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION"
name="note_add_folders_fullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders" />
class="alert alert-info note_add_folders_fullpath" />
<!-- Addurls Field. Type: Subform. (joomla)-->
<field type="subform"
name="addurls"
@ -138,13 +138,13 @@
</field>
</form>
</field>
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla)-->
<!-- Note_add_files_fullpath Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_urls"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION"
name="note_add_files_fullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_urls" />
class="alert alert-info note_add_files_fullpath" />
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_files"
@ -152,51 +152,13 @@
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_files" />
<!-- Addfolders Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfolders_modal"
repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom)-->
<field type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
<!-- Note_add_urls Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_urls"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_urls" />
<!-- Addfiles Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfiles"
@ -243,6 +205,153 @@
class="inputbox" />
</form>
</field>
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_folders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_DESCRIPTION"
heading="h4"
class="alert alert-info note_add_folders" />
<!-- Addfilesfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfilesfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfilesfullpath_modal"
repeat="true">
<!-- Filepath Field. Type: Text. (joomla)-->
<field type="text"
name="filepath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FILEPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Notnew Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="notnew"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION"
class="inputbox" />
</form>
</field>
<!-- Addfolders Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfolders"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfolders_modal"
repeat="true">
<!-- Folder Field. Type: Customfolderlist. (custom)-->
<field type="customfolderlist"
name="folder"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_LABEL"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="false"
button="false" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
<!-- Addfoldersfullpath Field. Type: Subform. (joomla)-->
<field type="subform"
name="addfoldersfullpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL"
layout="joomla.form.field.subform.repeatable-table"
multiple="true"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION"
icon="list"
maximum="500">
<form hidden="true"
name="list_addfoldersfullpath_modal"
repeat="true">
<!-- Folderpath Field. Type: Text. (joomla)-->
<field type="text"
name="folderpath"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_LABEL"
size="70"
maxlength="300"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION"
class="text_area"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_FOLDERPATH_HINT" />
<!-- Path Field. Type: Text. (joomla)-->
<field type="text"
name="path"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="PATH"
message="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_MESSAGE"
hint="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_PATH_HINT" />
<!-- Rename Field. Type: Checkbox. (joomla)-->
<field type="checkbox"
name="rename"
label="COM_COMPONENTBUILDER_LIBRARY_FILES_FOLDERS_URLS_RENAME_LABEL"
value="1"
required="false"
class="inputbox" />
</form>
</field>
</fieldset>
<!-- Access Control Fields. -->

View File

@ -103,6 +103,22 @@ 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.
$addfilesfullpath = new Registry;
$addfilesfullpath->loadString($item->addfilesfullpath);
$item->addfilesfullpath = $addfilesfullpath->toArray();
}
if (!empty($item->addfolders))
{
// Convert the addfolders field to an array.
@ -111,12 +127,12 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
$item->addfolders = $addfolders->toArray();
}
if (!empty($item->addfiles))
if (!empty($item->addfoldersfullpath))
{
// Convert the addfiles field to an array.
$addfiles = new Registry;
$addfiles->loadString($item->addfiles);
$item->addfiles = $addfiles->toArray();
// Convert the addfoldersfullpath field to an array.
$addfoldersfullpath = new Registry;
$addfoldersfullpath->loadString($item->addfoldersfullpath);
$item->addfoldersfullpath = $addfoldersfullpath->toArray();
}
if (!empty($item->id))
@ -821,6 +837,32 @@ 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']))
{
$addfilesfullpath = new JRegistry;
$addfilesfullpath->loadArray($data['addfilesfullpath']);
$data['addfilesfullpath'] = (string) $addfilesfullpath;
}
elseif (!isset($data['addfilesfullpath']))
{
// Set the empty addfilesfullpath to data
$data['addfilesfullpath'] = '';
}
// Set the addfolders items to data.
if (isset($data['addfolders']) && is_array($data['addfolders']))
{
@ -834,17 +876,17 @@ class ComponentbuilderModelLibrary_files_folders_urls extends JModelAdmin
$data['addfolders'] = '';
}
// Set the addfiles items to data.
if (isset($data['addfiles']) && is_array($data['addfiles']))
// Set the addfoldersfullpath items to data.
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
{
$addfiles = new JRegistry;
$addfiles->loadArray($data['addfiles']);
$data['addfiles'] = (string) $addfiles;
$addfoldersfullpath = new JRegistry;
$addfoldersfullpath->loadArray($data['addfoldersfullpath']);
$data['addfoldersfullpath'] = (string) $addfoldersfullpath;
}
elseif (!isset($data['addfiles']))
elseif (!isset($data['addfoldersfullpath']))
{
// Set the empty addfiles to data
$data['addfiles'] = '';
// Set the empty addfoldersfullpath to data
$data['addfoldersfullpath'] = '';
}
// Set the Params Items to data