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)
+ *Name*: [Demo] (https://www.vdm.io/)
+ *First Build*: 5th August, 2015
+ *Last Build*: 20th March, 2016
+ *Last Build*: 2nd May, 2016
+ *Version*: 1.0.5
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *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**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **16672**
+ *Line count*: **16713**
+ *File count*: **152**
+ *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:
> **debugging @12hours** = codingtime / 4;
@ -35,7 +35,7 @@ due to [Automated Component Builder] (https://www.vdm.io/joomla-component-builde
> **mapping @5hours** = codingtime / 10;
> **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)
> (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
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage admin.css

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.5
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage demo.php
@ -38,7 +38,7 @@ $document->addStyleSheet('components/com_demo/assets/css/admin.css');
$document->addScript('components/com_demo/assets/js/admin.js');
// require helper files
JLoader::register('DemoHelper', dirname(__FILE__) . '/helpers/demo.php');
JLoader::register('DemoHelper', dirname(__FILE__) . '/helpers/demo.php');
JLoader::register('JHtmlBatch_', dirname(__FILE__) . '/helpers/html/batch_.php');
// import joomla controller library

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.5
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage view.html.php
@ -189,7 +189,7 @@ class DemoViewHelp_document extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_DEMO_HELP_DOCUMENT_NEW' : 'COM_DEMO_HELP_DOCUMENT_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_demo/assets/css/help_document.css");
$document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_demo/views/help_document/submitbutton.js");
$document->addScript(JURI::root() . "administrator/components/com_demo/views/help_document/submitbutton.js");
JText::script('view not acceptable. Error');
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.5
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage view.html.php
@ -189,7 +189,7 @@ class DemoViewLook extends JViewLegacy
$document->setTitle(JText::_($isNew ? 'COM_DEMO_LOOK_NEW' : 'COM_DEMO_LOOK_EDIT'));
$document->addStyleSheet(JURI::root() . "administrator/components/com_demo/assets/css/look.css");
$document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_demo/views/look/submitbutton.js");
$document->addScript(JURI::root() . "administrator/components/com_demo/views/look/submitbutton.js");
JText::script('view not acceptable. Error');
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.5
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage demo.php
@ -27,7 +27,7 @@ $document->addStyleSheet('components/com_demo/assets/css/site.css');
$document->addScript('components/com_demo/assets/js/site.js');
// Require helper files
JLoader::register('DemoHelper', dirname(__FILE__) . '/helpers/demo.php');
JLoader::register('DemoHelper', dirname(__FILE__) . '/helpers/demo.php');
JLoader::register('DemoHelperRoute', dirname(__FILE__) . '/helpers/route.php'); ###SITE_GLOBAL_EVENT###
// import joomla controller library

View File

@ -4,7 +4,7 @@
/-------------------------------------------------------------------------------------------------------/
@version 1.0.5
@build 20th March, 2016
@build 2nd May, 2016
@created 5th August, 2015
@package Demo
@subpackage demo.php
@ -396,6 +396,45 @@ abstract class DemoHelper
}
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
@ -857,7 +896,7 @@ abstract class DemoHelper
$w .= ' ';
if($r < 100)
{
$word .= 'and ';
$w .= 'and ';
}
$w .= self::numberToString($r);
}

View File

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

View File

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

View File

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