Next update.

This commit is contained in:
Llewellyn van der Merwe 2016-05-02 16:38:37 +01:00
parent 51297f2b7e
commit 361a810744
85 changed files with 136 additions and 95 deletions

View File

@ -10,7 +10,7 @@ Just a basic demo of the most basic implementations of the [Joomla] (http://www.
+ *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io) + *Author*: [Llewellyn van der Merwe] (mailto:info@vdm.io)
+ *Name*: [Demo] (https://www.vdm.io/) + *Name*: [Demo] (https://www.vdm.io/)
+ *First Build*: 5th August, 2015 + *First Build*: 5th August, 2015
+ *Last Build*: 20th March, 2016 + *Last Build*: 2nd May, 2016
+ *Version*: 1.0.5 + *Version*: 1.0.5
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -23,11 +23,11 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.) > never making one mistake or taking any coffee break.)
+ *Line count*: **16672** + *Line count*: **16713**
+ *File count*: **152** + *File count*: **152**
+ *Folder count*: **50** + *Folder count*: **50**
**30 Hours** or **4 Eight Hour Days** (the actual time the author spent) **31 Hours** or **4 Eight Hour Days** (the actual time the author spent)
> (with the following break down: > (with the following break down:
> **debugging @12hours** = codingtime / 4; > **debugging @12hours** = codingtime / 4;
@ -35,7 +35,7 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> **mapping @5hours** = codingtime / 10; > **mapping @5hours** = codingtime / 10;
> **office @8hours** = codingtime / 6;) > **office @8hours** = codingtime / 6;)
**77 Hours** or **10 Eight Hour Days** **78 Hours** or **10 Eight Hour Days**
(a total of the realistic time frame for this project) (a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**, > (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage admin.css @subpackage admin.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage dashboard.css @subpackage dashboard.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_document.css @subpackage help_document.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_documents.css @subpackage help_documents.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage look.css @subpackage look.css

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage looks.css @subpackage looks.css

View File

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<config> <config>
<fieldset <fieldset
addrulepath="/administrator/components/com_demo/models/rules"
addfieldpath="/administrator/components/com_demo/models/fields"
name="global_config" name="global_config"
label="COM_DEMO_CONFIG_GLOBAL_LABEL" label="COM_DEMO_CONFIG_GLOBAL_LABEL"
description="COM_DEMO_CONFIG_GLOBAL_DESC"> description="COM_DEMO_CONFIG_GLOBAL_DESC">

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage controller.php @subpackage controller.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help.php @subpackage help.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_document.php @subpackage help_document.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_documents.php @subpackage help_documents.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage import.php @subpackage import.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage look.php @subpackage look.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage looks.php @subpackage looks.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php
@ -442,7 +442,7 @@ abstract class DemoHelper
$query = $db->getQuery(true); $query = $db->getQuery(true);
$query->select(array('a.published')); $query->select(array('a.published'));
$query->from('#__demo_'.$type.' AS a'); $query->from('#__demo_'.$type.' AS a');
$query->where('a.id = '.$id); $query->where('a.id = '. (int) $id);
$query->where('a.published = 1'); $query->where('a.published = 1');
$db->setQuery($query); $db->setQuery($query);
$db->execute(); $db->execute();
@ -460,7 +460,7 @@ abstract class DemoHelper
$query = $db->getQuery(true); $query = $db->getQuery(true);
$query->select(array('a.title')); $query->select(array('a.title'));
$query->from('#__usergroups AS a'); $query->from('#__usergroups AS a');
$query->where('a.id = '.$id); $query->where('a.id = '. (int) $id);
$db->setQuery($query); $db->setQuery($query);
$db->execute(); $db->execute();
$found = $db->getNumRows(); $found = $db->getNumRows();
@ -1082,7 +1082,7 @@ abstract class DemoHelper
$w .= ' '; $w .= ' ';
if($r < 100) if($r < 100)
{ {
$word .= 'and '; $w .= 'and ';
} }
$w .= self::numberToString($r); $w .= self::numberToString($r);
} }

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage batch_.php @subpackage batch_.php

View File

@ -1,4 +1,4 @@
COM_DEMO="Demo" COM_DEMO="Demo Configuration"
COM_DEMO_CONFIGURATION="Demo Configuration" COM_DEMO_CONFIGURATION="Demo Configuration"
COM_DEMO_MENU="&#187; Demo" COM_DEMO_MENU="&#187; Demo"
COM_DEMO_MENU_HELP_DOCUMENTS="Help Documents" COM_DEMO_MENU_HELP_DOCUMENTS="Help Documents"

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage batchselection.php @subpackage batchselection.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_above.php @subpackage details_above.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_fullwidth.php @subpackage details_fullwidth.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_left.php @subpackage details_left.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_right.php @subpackage details_right.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_under.php @subpackage details_under.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage metadata.php @subpackage metadata.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage publishing.php @subpackage publishing.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_above.php @subpackage details_above.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_left.php @subpackage details_left.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_right.php @subpackage details_right.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage details_under.php @subpackage details_under.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage metadata.php @subpackage metadata.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage publishing.php @subpackage publishing.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage repetable_numbers_left.php @subpackage repetable_numbers_left.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage repetable_numbers_right.php @subpackage repetable_numbers_right.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage articles.php @subpackage articles.php

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_document.js @subpackage help_document.js

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage look.js @subpackage look.js

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_document.php @subpackage help_document.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_documents.php @subpackage help_documents.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage import.php @subpackage import.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage look.php @subpackage look.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage looks.php @subpackage looks.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help_document.php @subpackage help_document.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage look.php @subpackage look.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default.php @subpackage default.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_main.php @subpackage default_main.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_vdm.php @subpackage default_vdm.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage submitbutton.js @subpackage submitbutton.js

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage edit.php @subpackage edit.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default.php @subpackage default.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_batch_body.php @subpackage default_batch_body.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_batch_footer.php @subpackage default_batch_footer.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_body.php @subpackage default_body.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_foot.php @subpackage default_foot.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_head.php @subpackage default_head.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_toolbar.php @subpackage default_toolbar.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default.php @subpackage default.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage submitbutton.js @subpackage submitbutton.js

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage edit.php @subpackage edit.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default.php @subpackage default.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_batch_body.php @subpackage default_batch_body.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_batch_footer.php @subpackage default_batch_footer.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_body.php @subpackage default_body.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_foot.php @subpackage default_foot.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_head.php @subpackage default_head.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage default_toolbar.php @subpackage default_toolbar.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage view.html.php @subpackage view.html.php

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade"> <extension type="component" version="3.2" method="upgrade">
<name>COM_DEMO</name> <name>COM_DEMO</name>
<creationDate>20th March, 2016</creationDate> <creationDate>2nd May, 2016</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>info@vdm.io</authorEmail> <authorEmail>info@vdm.io</authorEmail>
<authorUrl>https://www.vdm.io/</authorUrl> <authorUrl>https://www.vdm.io/</authorUrl>

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage script.php @subpackage script.php

View File

@ -3,7 +3,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage site.css @subpackage site.css

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage controller.php @subpackage controller.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage help.php @subpackage help.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage demo.php @subpackage demo.php
@ -397,6 +397,45 @@ abstract class DemoHelper
return false; return false;
} }
public static function isPublished($id,$type)
{
if ($type == 'raw')
{
$type = 'item';
}
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select(array('a.published'));
$query->from('#__demo_'.$type.' AS a');
$query->where('a.id = '. (int) $id);
$query->where('a.published = 1');
$db->setQuery($query);
$db->execute();
$found = $db->getNumRows();
if($found)
{
return true;
}
return false;
}
public static function getGroupName($id)
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select(array('a.title'));
$query->from('#__usergroups AS a');
$query->where('a.id = '. (int) $id);
$db->setQuery($query);
$db->execute();
$found = $db->getNumRows();
if($found)
{
return $db->loadResult();
}
return $id;
}
/** /**
* Get the actions permissions * Get the actions permissions
**/ **/
@ -857,7 +896,7 @@ abstract class DemoHelper
$w .= ' '; $w .= ' ';
if($r < 100) if($r < 100)
{ {
$word .= 'and '; $w .= 'and ';
} }
$w .= self::numberToString($r); $w .= self::numberToString($r);
} }

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage headercheck.php @subpackage headercheck.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage route.php @subpackage route.php

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/ /-------------------------------------------------------------------------------------------------------/
@version 1.0.5 @version 1.0.5
@build 20th March, 2016 @build 2nd May, 2016
@created 5th August, 2015 @created 5th August, 2015
@package Demo @package Demo
@subpackage router.php @subpackage router.php