Added bulk updater to get snippets area. Added contributor details to snippets table. Imporved the installer to update the library matchup of old snippets. gh-92

This commit is contained in:
2017-11-20 14:35:30 +02:00
parent eb43f1e3bc
commit 5ae67c1ecc
54 changed files with 1817 additions and 1242 deletions

View File

@ -112,7 +112,7 @@ class ComponentbuilderModelFtp extends JModelAdmin
$item->tags->getTagIds($item->id, 'com_componentbuilder.ftp');
}
}
$this->sales_server_ftpupdate_server_ftp_vvvz = $item->id;
$this->sales_server_ftpupdate_server_ftp_vvvx = $item->id;
return $item;
}
@ -122,7 +122,7 @@ class ComponentbuilderModelFtp extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVzxlinked_components()
public function getVzvlinked_components()
{
// Get the user object.
$user = JFactory::getUser();
@ -136,15 +136,15 @@ class ComponentbuilderModelFtp extends JModelAdmin
// From the componentbuilder_joomla_component table
$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a'));
// Filter by sales_server_ftpupdate_server_ftp_vvvz global.
$sales_server_ftpupdate_server_ftp_vvvz = $this->sales_server_ftpupdate_server_ftp_vvvz;
if (is_numeric($sales_server_ftpupdate_server_ftp_vvvz ))
// Filter by sales_server_ftpupdate_server_ftp_vvvx global.
$sales_server_ftpupdate_server_ftp_vvvx = $this->sales_server_ftpupdate_server_ftp_vvvx;
if (is_numeric($sales_server_ftpupdate_server_ftp_vvvx ))
{
$query->where('a.sales_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvvz . ' OR a.update_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvvz, ' OR');
$query->where('a.sales_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvvx . ' OR a.update_server_ftp = ' . (int) $sales_server_ftpupdate_server_ftp_vvvx, ' OR');
}
elseif (is_string($sales_server_ftpupdate_server_ftp_vvvz))
elseif (is_string($sales_server_ftpupdate_server_ftp_vvvx))
{
$query->where('a.sales_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvvz) . ' OR a.update_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvvz), ' OR');
$query->where('a.sales_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvvx) . ' OR a.update_server_ftp = ' . $db->quote($sales_server_ftpupdate_server_ftp_vvvx), ' OR');
}
else
{