Release of v5.1.1-alpha2
Adds the ModalSelect fieldtype to Joomla Component Builder - J5. Adds the Data Import Function to the Demo Component. Adds new country related tables and fields to the Demo Component. Resolves the Database Updating issue in the compiler. #1212,#1209. Adds the Component Commands Plugin to the CLI for Import of spreadsheet data-sets.
This commit is contained in:
@ -115,7 +115,7 @@ abstract class ###Component###Helper
|
||||
public static function getContributors()
|
||||
{
|
||||
// get params
|
||||
$params = ComponentHelper::getParams('com_###component###');
|
||||
$params = Joomla___aeb8e463_291f_4445_9ac4_34b637c12dbd___Power::getParams('com_###component###');
|
||||
// start contributors array
|
||||
$contributors = [];
|
||||
// get all Contributors (max 20)
|
||||
@ -172,7 +172,7 @@ abstract class ###Component###Helper
|
||||
}
|
||||
|
||||
// Get the model through the MVCFactory
|
||||
return Factory::getApplication()->bootComponent('com_' . $component)->getMVCFactory()->createModel($type, $prefix, $config);
|
||||
return Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication()->bootComponent('com_' . $component)->getMVCFactory()->createModel($type, $prefix, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -242,7 +242,7 @@ abstract class ###Component###Helper
|
||||
|
||||
if (!$asset->check() || !$asset->store())
|
||||
{
|
||||
Factory::getApplication()->enqueueMessage($asset->getError(), 'warning');
|
||||
Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication()->enqueueMessage($asset->getError(), 'warning');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
@ -255,7 +255,7 @@ abstract class ###Component###Helper
|
||||
$object->asset_id = (int) $asset->id;
|
||||
|
||||
// Update their asset_id to link to the asset table.
|
||||
return Factory::getDbo()->updateObject('#__###component###_'.$table, $object, 'id');
|
||||
return Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getDbo()->updateObject('#__###component###_'.$table, $object, 'id');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@ -272,7 +272,7 @@ abstract class ###Component###Helper
|
||||
if (!$inherit)
|
||||
{
|
||||
// Need to find the asset id by the name of the component.
|
||||
$db = Factory::getContainer()->get(DatabaseInterface::class);
|
||||
$db = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getContainer()->get(DatabaseInterface::class);
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('id'))
|
||||
->from($db->quoteName('#__assets'))
|
||||
@ -497,7 +497,7 @@ abstract class ###Component###Helper
|
||||
{
|
||||
$type = 'item';
|
||||
}
|
||||
$db = Factory::getContainer()->get(DatabaseInterface::class);
|
||||
$db = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getContainer()->get(DatabaseInterface::class);
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.published'));
|
||||
$query->from('#__###component###_'.$type.' AS a');
|
||||
@ -515,7 +515,7 @@ abstract class ###Component###Helper
|
||||
|
||||
public static function getGroupName($id)
|
||||
{
|
||||
$db = Factory::getContainer()->get(DatabaseInterface::class);
|
||||
$db = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getContainer()->get(DatabaseInterface::class);
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.title'));
|
||||
$query->from('#__usergroups AS a');
|
||||
@ -549,7 +549,7 @@ abstract class ###Component###Helper
|
||||
if (!Super___91004529_94a9_4590_b842_e7c6b624ecf5___Power::check($user))
|
||||
{
|
||||
// get the user object
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$user = Joomla___39403062_84fb_46e0_bac4_0023f766e827___Power::getApplication()->getIdentity();
|
||||
}
|
||||
// load the CMSObject
|
||||
$result = new CMSObject;
|
||||
|
Reference in New Issue
Block a user