-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from techjoomla/release-1.1.0
Release 1.1.0
- Loading branch information
Showing
75 changed files
with
20,990 additions
and
786 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/controller.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access | ||
|
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/controllers/dashboards.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright 2017 Techjoomla | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access to this file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright 2017 Techjoomla | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die; | ||
|
@@ -17,44 +19,4 @@ | |
*/ | ||
class TjDashboardControllerWidget extends JControllerForm | ||
{ | ||
/** | ||
* Function to get all the respective renderers for given data source | ||
* | ||
* @return object object | ||
*/ | ||
public function getSupportedRenderers() | ||
{ | ||
try | ||
{ | ||
$app = JFactory::getApplication(); | ||
$jinput = $app->input; | ||
$formData = $jinput->post->get('pluginName', '', 'string'); | ||
$dataPlugin = explode('.', $formData); | ||
$pluginFolder = $dataPlugin[0] . '/' . $dataPlugin[0]; | ||
$pluginFileName = $dataPlugin[1]; | ||
require_once JPATH_PLUGINS . '/tjdashboardsource/' . $pluginFolder . '/' . $pluginFileName . '.php'; | ||
$className = ucfirst($dataPlugin[0]) . ucfirst($pluginFileName) . 'Datasource'; | ||
$dataSourceObject = new $className; | ||
$renderers = $dataSourceObject->getSupportedRenderers(); | ||
$lang = JFactory::getLanguage(); | ||
|
||
foreach ($renderers as $key => $value) | ||
{ | ||
$rendererName = explode(".", $key); | ||
$languageFilePath = JPATH_PLUGINS . '/tjdashboardrenderer/' . $rendererName[0]; | ||
|
||
// Loading renderer language files for loading list of renderers available | ||
$lang->load("plg_tjdashboardrenderer_" . $rendererName[0], $languageFilePath, null, false, true) || | ||
$lang->load("plg_tjdashboardrenderer_" . $rendererName[0], JPATH_ADMINISTRATOR, null, false, true); | ||
$renderers[$key] = JText::_($value); | ||
} | ||
|
||
echo new JResponseJson($renderers); | ||
jexit(); | ||
} | ||
catch (Exception $e) | ||
{ | ||
echo new JResponseJson($e); | ||
} | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/controllers/widgets.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access | ||
|
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/helpers/dashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright 2017 Techjoomla | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access to this file | ||
|
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/includes/tjdashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/components/com_tjdashboard/administrator/languages/en-GB/en-GB.com_tjdashboard.sys.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
src/components/com_tjdashboard/administrator/libraries/dashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright 2017 Techjoomla | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die('Unauthorized Access'); | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright 2017 Techjoomla | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die('Unauthorized Access'); | ||
|
||
/** | ||
|
@@ -42,6 +45,8 @@ class TjdashboardWidget extends JObject | |
|
||
public $modified_by = 0; | ||
|
||
public $core = 0; | ||
|
||
public $widget_render_data = array(); | ||
|
||
public $widget_js = array(); | ||
|
12 changes: 6 additions & 6 deletions
12
src/components/com_tjdashboard/administrator/models/dashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access. | ||
|
||
defined('_JEXEC') or die; | ||
|
||
use Joomla\Registry\Registry; | ||
|
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/models/dashboards.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access to this file | ||
|
10 changes: 6 additions & 4 deletions
10
src/components/com_tjdashboard/administrator/models/fields/modaldashboard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('JPATH_BASE') or die; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Com_Tjdashboard | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package TJDashboard | ||
* @subpackage com_tjdashboard | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access. | ||
|
@@ -134,6 +136,8 @@ protected function getOptions() | |
$options = $db->setQuery($query)->loadObjectList(); | ||
$lang = JFactory::getLanguage(); | ||
$j = 0; | ||
$tjDashboardSourcePlugins[$j]['text'] = JText::_('COM_TJDASHBOARD_WIDGET_FORM_DATA_PLUGIN'); | ||
$tjDashboardSourcePlugins[$j]['value'] = ''; | ||
|
||
foreach ($options as $item) | ||
{ | ||
|
Oops, something went wrong.