Improved the compiler getDynamicScript to also use function tabs. Moved the fucntion tab to helper class. Added dynamic title and description insertion options to permissions area.

This commit is contained in:
2019-09-04 13:52:31 +02:00
parent 9781910dd3
commit 3cbe21f57d
29 changed files with 1632 additions and 1456 deletions

View File

@ -302,15 +302,18 @@ class ComponentbuilderModelCustom_codes extends JModelList
*
* @return mixed An array of data items on success, false on failure.
*/
public function getExportData($pks)
public function getExportData($pks, $user = null)
{
// setup the query
if (ComponentbuilderHelper::checkArray($pks))
{
// Set a value to know this is exporting method.
// Set a value to know this is exporting method. (USE IN CUSTOM CODE TO ALTER OUTCOME)
$_export = true;
// Get the user object.
$user = JFactory::getUser();
// Get the user object if not set.
if (ComponentbuilderHelper::checkObject($user))
{
$user = JFactory::getUser();
}
// Create a new query object.
$db = JFactory::getDBO();
$query = $db->getQuery(true);