Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joomla3 #1

Open
wants to merge 153 commits into
base: DI
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
a282f10
Tweaks to the grid() helper and YesNo element so it works in BS3
cheesegrits Oct 15, 2015
3f21635
Fixed accenterd characters in chart labels
cheesegrits Oct 15, 2015
f87ae80
Couple of do-nothing JS changes
cheesegrits Oct 16, 2015
9eb2ccb
Added button type to button element, allows it to be used as a submit
cheesegrits Oct 16, 2015
f4afeff
Changed tab id's in bootstrap-tabs from just group-tabX to
cheesegrits Oct 16, 2015
d2b2ee5
Added missing layout to user element
cheesegrits Oct 17, 2015
4b14bee
Added gridClasses() and dataAttributes() methods to radiobutton class,
cheesegrits Oct 18, 2015
c638b71
Added different library for qrcode
cheesegrits Oct 19, 2015
9b8418c
codestyle
pollen8 Oct 19, 2015
8d1b476
grunt changes for win10, compressed js file
pollen8 Oct 19, 2015
295b18c
merge j3
pollen8 Oct 19, 2015
6297dc9
min js files
pollen8 Oct 19, 2015
427619c
fixed merge issue
pollen8 Oct 19, 2015
e920650
fixed merge issue
pollen8 Oct 19, 2015
4b9640b
Fix to icon handlong fopr list plugins so a file name with a valid image
cheesegrits Oct 19, 2015
b731702
Tidying up some static booboos in mime type stuff
cheesegrits Oct 19, 2015
7fec0e8
Deconflicting parent helper
cheesegrits Oct 19, 2015
a5fe84c
disable database field for element without recorded data
yuriyua Oct 19, 2015
4748771
https://github.com/Fabrik/fabrik/commit/a5fe84c0b03d3ab7dbe80ec8ad376…
yuriyua Oct 19, 2015
f5cee3d
Fixed front end CSV import so 'Drop data' is not an shown as an option
cheesegrits Oct 19, 2015
37ab073
Fix for description in join element, as per Bauer. Also fixed typos on
cheesegrits Oct 20, 2015
52dd014
Renaming upload element rendering classes, have to have Model in the
cheesegrits Oct 20, 2015
f69c6c9
Improved tooltip for form and group label positions. Fixed error in
cheesegrits Oct 20, 2015
2e30ea7
Added more logging to paypal IPN processing.
cheesegrits Oct 20, 2015
5cba503
First attempt at a special placeholder {nav_url} for map viz bubble
cheesegrits Oct 20, 2015
30f06ed
Added more logging to PayPal IPN
cheesegrits Oct 20, 2015
c863348
adding listmodel getPrimaryKey() method - shortcut to grabbing the pa…
pollen8 Oct 21, 2015
a297d5c
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 21, 2015
806efe3
Fixed notices in map viz when mulitple lists selected and no radio op…
pollen8 Oct 21, 2015
af72724
Googleometer can now rendered in joined groups, Closes GH-908
pollen8 Oct 21, 2015
777a15b
DI in admin edit models
pollen8 Oct 21, 2015
34c2829
DI in admin edit models - pluginmanager
pollen8 Oct 21, 2015
b4c3712
Deleting parent element (and dropping from db) left child elements in…
pollen8 Oct 21, 2015
43cb63a
fixed - If no layout is defined in the content plugin string it's tak…
pollen8 Oct 21, 2015
a3424a0
DI for front end views
pollen8 Oct 21, 2015
ef105fe
Added Connection:close header to paypal IPN postback
cheesegrits Oct 21, 2015
fe91987
A couple of tweaks for element labels, to allow for a BS3 override
cheesegrits Oct 21, 2015
c884e27
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 21, 2015
d35f9a1
fixed: regression in csv export - download via UI was not happpening
pollen8 Oct 21, 2015
ac1c84c
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 21, 2015
24b763e
fixed, list search all could produce an error if no advanced search f…
pollen8 Oct 21, 2015
418af46
{thistable} placeholder name quoted, Closes GH-1292
pollen8 Oct 21, 2015
d5e5f4c
fixed front end csv import: would not work with ajax fileupload info
pollen8 Oct 21, 2015
034922b
woops
pollen8 Oct 21, 2015
86abe1e
fixed: [rowid] in content plugin placeholder, in details intro was re…
pollen8 Oct 21, 2015
be4ccca
closes GH-1289
pollen8 Oct 21, 2015
35985e7
updated copyright year
pollen8 Oct 21, 2015
1fa4ec7
Working on IPN issues in PayPal plugin.
cheesegrits Oct 21, 2015
c2f5382
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 21, 2015
e4a3bfb
Fabrik as HomePage - Fatal error recieved instead 404 on missing page…
pollen8 Oct 21, 2015
d13f1c8
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 21, 2015
5d57b24
Added logging of full IPN response
cheesegrits Oct 21, 2015
8f81ea3
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 21, 2015
619b517
Ooops. Explode the darn array before treating it as a string! Bad
cheesegrits Oct 21, 2015
cf66865
Fix (?) for number format in field element when also using printf
cheesegrits Oct 21, 2015
9f9f492
Removing unused variable
cheesegrits Oct 21, 2015
4e1150a
Fix (hopefully) for PayPal issue with live vs sandbox site
cheesegrits Oct 22, 2015
d46562b
saleforce form plugin help url out of date
pollen8 Oct 22, 2015
dc7cdbb
added: placeholder to dbjoin when rendered as auto-complete
pollen8 Oct 22, 2015
2fe8fbe
Added User-Agent header to PayPal IPN response handling, as PayPal seem
cheesegrits Oct 22, 2015
97ab0f7
Update birthday.php
pascal26 Oct 23, 2015
7f5c219
Update fields.xml
pascal26 Oct 23, 2015
a3251b2
fixed: error in ajax raw form submission
pollen8 Oct 23, 2015
9d7cad1
added button layout
pollen8 Oct 23, 2015
98525f4
fixed: 2 form modules, on same page, both with checkbox elements. The…
pollen8 Oct 23, 2015
0e3b90a
changed download plugin to use bootstrap icon for button, codestyle
pollen8 Oct 23, 2015
688cd83
added: placeholder to date element
pollen8 Oct 23, 2015
629f0d0
Merge pull request #1557 from pascal26/joomla3
pollen8 Oct 23, 2015
ea88186
Added option to not cache google map static images, as some sites (on
cheesegrits Oct 23, 2015
0748e03
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 23, 2015
912c98d
Added language for ZIP error msgs in list download plugin.
cheesegrits Oct 23, 2015
4cc7caf
Merge pull request #1555 from yuriyua/joomla3
cheesegrits Oct 23, 2015
9a27fcc
Fix for getImageName() for lkist plugins using 'lightning' (removed .png
cheesegrits Oct 23, 2015
4a3b050
Fixing issues with WYSIWYG textarea in repeat groups. Not 100% yet, but
cheesegrits Oct 24, 2015
57ed6c7
Removed use of FText in JField class override, changed it back to JText.
cheesegrits Oct 24, 2015
aba53bf
Updating getid3 to latest version. Still doesn't get rid of the mysql
cheesegrits Oct 24, 2015
fd21e73
Added geocompletion as autocomplete option to field element. Uses
cheesegrits Oct 25, 2015
d9e669d
Fixed typo in textarea JS for _removeTinyEditor
cheesegrits Oct 25, 2015
e1853f5
Added language for new Geocompletion option for field element
cheesegrits Oct 25, 2015
24399ef
some admin field improvements - toggleradios can now take a json argu…
pollen8 Oct 26, 2015
239d5fd
Fixing comment about location of user_defines in defines.php
cheesegrits Oct 27, 2015
474fa28
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 27, 2015
e3c032c
removing pointless html comments
pollen8 Oct 27, 2015
01c23ec
small layout tweaks for dbjoin and user
pollen8 Oct 27, 2015
4a0d3a6
modal repeat js code works with radio buttons / checkboxes
pollen8 Oct 27, 2015
9cdfdca
added Fabrik.bootstrapVersion() js method to check for bootstrap vers…
pollen8 Oct 27, 2015
9c3f9c8
ensure list plugin buttons render correctly in bs3
pollen8 Oct 27, 2015
49f4a8e
Added a test in the tthumbs element to see if the table has a 'tableid'
cheesegrits Oct 27, 2015
697af60
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 27, 2015
53a9077
jslint on fileupload js
pollen8 Oct 28, 2015
45fb912
added jform field listifields "at" option to use inline placeholder i…
pollen8 Oct 28, 2015
ad68f86
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 28, 2015
2865b32
fixed: group labels above option was not being correctly applied
pollen8 Oct 28, 2015
77a84cc
fixed notice in validation rule if element (googleometer) doesnt post…
pollen8 Oct 28, 2015
5b048f5
fixed notice in validation rule if element (googleometer) doesnt post…
pollen8 Oct 28, 2015
19042b3
Adding fatal error handling to cron model. Adding noAJAX mode to list
cheesegrits Oct 28, 2015
47ef0f2
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 28, 2015
ac33900
fixed grunt file so that it ignores symlinked folders when copying, u…
pollen8 Oct 28, 2015
e007812
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 28, 2015
01d2dc9
Fix (?) to set Fabrik.bootstrapped correctly in AJAX loaded page
cheesegrits Oct 29, 2015
4100cb9
transifex language update
pollen8 Oct 29, 2015
6fdae3d
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 29, 2015
98e5a37
Fixed checked setting for join radio layout. Added back some language
cheesegrits Oct 29, 2015
73c8150
Fix to language change for chosen join dropdown
cheesegrits Oct 29, 2015
c8fc815
Tweak to guess link type in field element, so if a title is specified,
cheesegrits Oct 29, 2015
bb3155d
lang fixes
pollen8 Oct 29, 2015
eceabd8
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Oct 29, 2015
8232d22
Adding geocomplete library
cheesegrits Oct 29, 2015
72446bc
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Oct 29, 2015
2a69681
Fixing list email plugin, controllers haven't been DI'ed yet but we were
cheesegrits Oct 30, 2015
b125e01
Couple of DI fixes, $this->document to $this->doc
cheesegrits Oct 30, 2015
6393fc8
Changing name of geocomplete JS to -min
cheesegrits Oct 30, 2015
3781d8a
Adding back language to map element
cheesegrits Oct 30, 2015
75c66d5
Adding more language back to map element
cheesegrits Oct 30, 2015
50767dc
update xml file dates and remove helpers dir from getid3 as very larg…
pollen8 Nov 2, 2015
aa1ce70
Fixing my stupid error which broke AJAX-ified list updates after a form
cheesegrits Nov 3, 2015
7c5f27c
Added a global config setting "Allow User Defines", which has to be
cheesegrits Nov 3, 2015
293e467
Fixing issue with group labels position not correctly defering to form
cheesegrits Nov 4, 2015
aae3118
Print form/details also from popup window
trob Nov 4, 2015
fa0026c
Add comment
trob Nov 5, 2015
950a1b7
Added list_email_mage_name param for list email plugin, defaults to
cheesegrits Nov 5, 2015
d9cd348
Merge pull request #1562 from trob/j3_print_modal_window
cheesegrits Nov 5, 2015
8257c36
A few fixes to the comments plugin
cheesegrits Nov 5, 2015
b40e24d
Replacing some date element language that got lost in the last build
cheesegrits Nov 5, 2015
e3ecba4
Updating translations for plugins/fabrik_element/date/language/en/<la…
cheesegrits Nov 5, 2015
c00818b
Updating translations for plugins/fabrik_list/email/language/en/<lang…
cheesegrits Nov 5, 2015
35d7378
Updating translations for plugins/fabrik_element/display/language/nl_…
cheesegrits Nov 5, 2015
16d41e7
Adding first cut of fullcalendar viz to github. This plugin may be
cheesegrits Nov 6, 2015
4bc4589
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into
cheesegrits Nov 6, 2015
16e15c2
deleting bad filename
cheesegrits Nov 6, 2015
382664b
removing bad file names
cheesegrits Nov 6, 2015
75d6246
Merge branch 'joomla3' of ssh://[email protected]/Fabrik/fabrik.git into…
cheesegrits Nov 6, 2015
3c757ca
Fix for tag links in lists, when using them for filtering, needed to
cheesegrits Nov 6, 2015
04b51d7
Added .input-append styling to add inline-block, which is missing in
cheesegrits Nov 6, 2015
5d9ec29
Adding bootstrap-grid layout
cheesegrits Nov 7, 2015
16abbf9
Adding bootstrap-grid layout
cheesegrits Nov 7, 2015
652f205
Fixed issue with ajax loader icon causing weird JS error in BS3
cheesegrits Nov 7, 2015
2feff0d
Converting list ordering headers to layouts, to accomodate BS3. New
cheesegrits Nov 7, 2015
8c59552
Fixing textarea tagified rendering so it doesn't do any further
cheesegrits Nov 8, 2015
eaa6f17
Added {shortlang} placeholder. Wiki said {lang} was "sef language name
cheesegrits Nov 8, 2015
cef531d
Removed duplicate opening div from renderCheckBoxList() in join element
cheesegrits Nov 9, 2015
02a9a55
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Nov 9, 2015
7dd52ff
Fixing previous fix to BS3 spinner icon issue (trying to load a BS3
cheesegrits Nov 9, 2015
ced88d9
fixed: bootstrap tabs being hidden in bootstrap3. Moved tabs into jLa…
pollen8 Nov 9, 2015
d5fbba7
Merge branch 'joomla3' of https://github.com/Fabrik/fabrik into joomla3
pollen8 Nov 9, 2015
bbc4be5
woops in tabs
pollen8 Nov 9, 2015
611a9a7
woops in tabs
pollen8 Nov 9, 2015
1c2eb80
Don't show trashed lists in ajax_tables call (eg CDD data list
cheesegrits Nov 9, 2015
d81916f
Fixing issues with date element used in 'search all'. Potential for
cheesegrits Nov 10, 2015
81648e1
Fix for elements not getting rendered in list, if element 'show in list'
cheesegrits Nov 10, 2015
e2135d1
Added per-user ACL's for editing elements.
cheesegrits Nov 10, 2015
1385944
Added 'please select value' to CDD options when filtering on lists.
cheesegrits Nov 10, 2015
668bc79
Update fabrikmodalrepeat.php
bauer-git Nov 13, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ custom.css
!software_license.txt
/ZendFramework-1.12.3
/mobiquo
/node_modules
313 changes: 186 additions & 127 deletions Gruntfile.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/classes/34/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ protected function getLabel()

// Get the label text from the XML element, defaulting to the element name.
$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];
$text = $this->translateLabel ? FText::_($text) : $text;
$text = $this->translateLabel ? JText::_($text) : $text;

// Forcing the Alias field to display the tip below
$position = $this->element['name'] == 'alias' ? ' data-placement="bottom" ' : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
// No direct access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
Expand Down
10 changes: 10 additions & 0 deletions administrator/components/com_fabrik/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field name="allow_user_defines"
class="radio btn-group"
type="radio"
default="0"
label="COM_FABRIK_FIELD_ALLOW_USER_DEFINES_LABEL"
description="COM_FABRIK_FIELD_ALLOW_USER_DEFINES_DESC">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

</fieldset>
<fieldset label="COM_FABRIK_LISTS" name="lists">
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
42 changes: 32 additions & 10 deletions administrator/components/com_fabrik/controllers/crons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
Expand Down Expand Up @@ -37,6 +37,8 @@ class FabrikAdminControllerCrons extends FabControllerAdmin
*/
protected $view_item = 'crons';

protected $runningId = null;

/**
* Proxy for getModel.
*
Expand All @@ -53,6 +55,22 @@ public function getModel($name = 'Cron', $prefix = 'FabrikAdminModel', $config =
return $model;
}

public function shutdownHandler()
{
$id = $this->runningId;
if (@is_array($e = @error_get_last())) {
$code = isset($e['type']) ? $e['type'] : 0;
$msg = isset($e['message']) ? $e['message'] : '';
$file = isset($e['file']) ? $e['file'] : '';
$line = isset($e['line']) ? $e['line'] : '';
if ($code>0) {
$this->log->message = "$code,$msg,$file,$line";
$this->log->store();
}
}
}


/**
* Run the selected cron plugins
*
Expand All @@ -76,16 +94,18 @@ public function run()
$pluginManager = JModelLegacy::getInstance('Pluginmanager', 'FabrikFEModel');
$listModel = JModelLegacy::getInstance('list', 'FabrikFEModel');
$c = 0;
$log = FabTable::getInstance('Log', 'FabrikTable');
$this->log = FabTable::getInstance('Log', 'FabrikTable');

register_shutdown_function(array($this, 'shutdownHandler'));

foreach ($rows as $row)
{
// Load in the plugin
$rowParams = json_decode($row->params);
$log->message = '';
$log->id = null;
$log->referring_url = '';
$log->message_type = 'plg.cron.' . $row->plugin;
$this->log->message = '';
$this->log->id = null;
$this->log->referring_url = '';
$this->log->message_type = 'plg.cron.' . $row->plugin;
$plugin = $pluginManager->getPlugIn($row->plugin, 'cron');
$table = FabTable::getInstance('cron', 'FabrikTable');
$table->load($row->id);
Expand All @@ -98,7 +118,7 @@ public function run()
if ($tid !== 0)
{
$thisListModel->setId($tid);
$log->message .= "\n\n$row->plugin\n listid = " . $thisListModel->getId();
$this->log->message .= "\n\n$row->plugin\n listid = " . $thisListModel->getId();

if ($plugin->requiresTableData())
{
Expand All @@ -111,14 +131,16 @@ public function run()
{
$data = array();
}

$this->runningId = $row->id;
// $$$ hugh - added table model param, in case plugin wants to do further table processing
$c = $c + $plugin->process($data, $thisListModel, $thisAdminListModel);

$log->message = $plugin->getLog() . "\n\n" . $log->message;
$this->log->message = $plugin->getLog() . "\n\n" . $this->log->message;

if ($plugin->getParams()->get('log', 0) == 1)
{
$log->store();
$this->log->store();
}

// Email log message
Expand All @@ -128,7 +150,7 @@ public function run()
{
$recipient = explode(',', $recipient);
$subject = $config->get('sitename') . ': ' . $row->plugin . ' scheduled task';
$mailer->sendMail($config->get('mailfrom'), $config->get('fromname'), $recipient, $subject, $log->message, true);
$mailer->sendMail($config->get('mailfrom'), $config->get('fromname'), $recipient, $subject, $this->log->message, true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* items, along with call to model to perform additional
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 1.6
*/
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fabrik/controllers/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Joomla.Administrator
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @copyright Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

Expand Down
Loading