diff --git a/README.md b/README.md index 1a1caaf..ae11ec2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Hello World (1.0.1) +# Hello World (1.1.0) @@ -8,8 +8,8 @@ + *Author*: [Llewellyn](mailto:joomla@vdm.io) + *Name*: [Hello World](https://www.vdm.io) + *First Build*: 20th September, 2017 -+ *Last Build*: 3rd March, 2022 -+ *Version*: 1.0.1 ++ *Last Build*: 27th May, 2022 ++ *Version*: 1.1.0 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -21,8 +21,8 @@ due to [Automated Component Builder](http://joomlacomponentbuilder.com)) > (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*: **14630** -+ *File count*: **139** ++ *Line count*: **14677** ++ *File count*: **140** + *Folder count*: **55** **27 Hours** or **4 Eight Hour Days** (the actual time the author spent) diff --git a/admin/README.txt b/admin/README.txt index 1a1caaf..ae11ec2 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -1,4 +1,4 @@ -# Hello World (1.0.1) +# Hello World (1.1.0) @@ -8,8 +8,8 @@ + *Author*: [Llewellyn](mailto:joomla@vdm.io) + *Name*: [Hello World](https://www.vdm.io) + *First Build*: 20th September, 2017 -+ *Last Build*: 3rd March, 2022 -+ *Version*: 1.0.1 ++ *Last Build*: 27th May, 2022 ++ *Version*: 1.1.0 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html @@ -21,8 +21,8 @@ due to [Automated Component Builder](http://joomlacomponentbuilder.com)) > (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*: **14630** -+ *File count*: **139** ++ *Line count*: **14677** ++ *File count*: **140** + *Folder count*: **55** **27 Hours** or **4 Eight Hour Days** (the actual time the author spent) diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css index 409f44c..ddcaf40 100644 --- a/admin/assets/css/admin.css +++ b/admin/assets/css/admin.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage admin.css diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css index 54c78f8..7424a30 100644 --- a/admin/assets/css/dashboard.css +++ b/admin/assets/css/dashboard.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage dashboard.css diff --git a/admin/assets/css/greeting.css b/admin/assets/css/greeting.css index 05bd8e8..dcf5476 100644 --- a/admin/assets/css/greeting.css +++ b/admin/assets/css/greeting.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.css diff --git a/admin/assets/css/greetings.css b/admin/assets/css/greetings.css index 71a85ef..ea179de 100644 --- a/admin/assets/css/greetings.css +++ b/admin/assets/css/greetings.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greetings.css diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js index 39fec1c..b567945 100644 --- a/admin/assets/js/admin.js +++ b/admin/assets/js/admin.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage admin.js diff --git a/admin/controller.php b/admin/controller.php index bc1fd43..a90b02d 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage controller.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** * General Controller of Hello_world component */ -class Hello_worldController extends JControllerLegacy +class Hello_worldController extends BaseController { /** * Constructor. diff --git a/admin/controllers/greeting.php b/admin/controllers/greeting.php index c7c8d25..f90bb5f 100644 --- a/admin/controllers/greeting.php +++ b/admin/controllers/greeting.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\FormController; use Joomla\Utilities\ArrayHelper; /** - * Greeting Controller + * Greeting Form Controller */ -class Hello_worldControllerGreeting extends JControllerForm +class Hello_worldControllerGreeting extends FormController { /** * Current or most recently performed task. diff --git a/admin/controllers/greetings.php b/admin/controllers/greetings.php index db04dd2..d810968 100644 --- a/admin/controllers/greetings.php +++ b/admin/controllers/greetings.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greetings.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\AdminController; use Joomla\Utilities\ArrayHelper; /** - * Greetings Controller + * Greetings Admin Controller */ -class Hello_worldControllerGreetings extends JControllerAdmin +class Hello_worldControllerGreetings extends AdminController { /** * The prefix to use with controller messages. diff --git a/admin/controllers/hello_world.php b/admin/controllers/hello_world.php index 3746be1..6dabf77 100644 --- a/admin/controllers/hello_world.php +++ b/admin/controllers/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); - +use Joomla\CMS\MVC\Controller\AdminController; +use Joomla\Utilities\ArrayHelper; /** - * Hello_world Controller + * Hello_world Admin Controller */ -class Hello_worldControllerHello_world extends JControllerAdmin +class Hello_worldControllerHello_world extends AdminController { } diff --git a/admin/controllers/import.php b/admin/controllers/import.php index 4f5fe89..4dc9081 100644 --- a/admin/controllers/import.php +++ b/admin/controllers/import.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage import.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Import Controller + * Hello_world Import Base Controller */ -class Hello_worldControllerImport extends JControllerLegacy +class Hello_worldControllerImport extends BaseController { /** * Import an spreadsheet. diff --git a/admin/hello_world.php b/admin/hello_world.php index da79c27..18f97ed 100644 --- a/admin/hello_world.php +++ b/admin/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php index 5cab117..142b597 100644 --- a/admin/helpers/headercheck.php +++ b/admin/helpers/headercheck.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage headercheck.php diff --git a/admin/helpers/hello_world.php b/admin/helpers/hello_world.php index 05d43c7..adadf79 100644 --- a/admin/helpers/hello_world.php +++ b/admin/helpers/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php @@ -1850,3 +1850,4 @@ abstract class Hello_worldHelper return implode($key); } } + diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php index 8e55b7e..c4ce4da 100644 --- a/admin/helpers/html/batch_.php +++ b/admin/helpers/html/batch_.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage batch_.php diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php index 95ff167..ac32c23 100644 --- a/admin/layouts/batchselection.php +++ b/admin/layouts/batchselection.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage batchselection.php diff --git a/admin/layouts/greeting/details_left.php b/admin/layouts/greeting/details_left.php index 1033f06..79f30f5 100644 --- a/admin/layouts/greeting/details_left.php +++ b/admin/layouts/greeting/details_left.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage details_left.php diff --git a/admin/layouts/greeting/metadata.php b/admin/layouts/greeting/metadata.php index cf7d1ee..d2965f0 100644 --- a/admin/layouts/greeting/metadata.php +++ b/admin/layouts/greeting/metadata.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage metadata.php diff --git a/admin/layouts/greeting/publishing.php b/admin/layouts/greeting/publishing.php index 382da4d..c66a155 100644 --- a/admin/layouts/greeting/publishing.php +++ b/admin/layouts/greeting/publishing.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage publishing.php diff --git a/admin/layouts/trashhelper.php b/admin/layouts/trashhelper.php index d6cfe58..ec724d6 100644 --- a/admin/layouts/trashhelper.php +++ b/admin/layouts/trashhelper.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage trashhelper.php diff --git a/admin/models/greeting.php b/admin/models/greeting.php index 374528f..9dccba9 100644 --- a/admin/models/greeting.php +++ b/admin/models/greeting.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.php @@ -21,14 +21,15 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\AdminModel; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Greeting Model + * Hello_world Greeting Admin Model */ -class Hello_worldModelGreeting extends JModelAdmin +class Hello_worldModelGreeting extends AdminModel { /** * The tab layout fields array. diff --git a/admin/models/greetings.php b/admin/models/greetings.php index 01a54c6..63b456d 100644 --- a/admin/models/greetings.php +++ b/admin/models/greetings.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greetings.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ListModel; use Joomla\Utilities\ArrayHelper; /** - * Greetings Model + * Greetings List Model */ -class Hello_worldModelGreetings extends JModelList +class Hello_worldModelGreetings extends ListModel { public function __construct($config = array()) { diff --git a/admin/models/hello_world.php b/admin/models/hello_world.php index 791e8da..d31b42e 100644 --- a/admin/models/hello_world.php +++ b/admin/models/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); - +use Joomla\CMS\MVC\Model\ListModel; +use Joomla\Utilities\ArrayHelper; /** - * Hello_world Model + * Hello_world List Model */ -class Hello_worldModelHello_world extends JModelList +class Hello_worldModelHello_world extends ListModel { public function getIcons() { diff --git a/admin/models/import.php b/admin/models/import.php index e00d960..23fff94 100644 --- a/admin/models/import.php +++ b/admin/models/import.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage import.php @@ -21,15 +21,16 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\BaseDatabaseModel; use Joomla\CMS\Filesystem\File; use Joomla\CMS\Filesystem\Folder; use Joomla\Utilities\ArrayHelper; use PhpOffice\PhpSpreadsheet\IOFactory; /** - * Hello_world Import Model + * Hello_world Import Base Database Model */ -class Hello_worldModelImport extends JModelLegacy +class Hello_worldModelImport extends BaseDatabaseModel { // set uploading values protected $use_streams = false; diff --git a/admin/sql/updates/mysql/1.0.1.sql b/admin/sql/updates/mysql/1.0.1.sql new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/admin/sql/updates/mysql/1.0.1.sql @@ -0,0 +1 @@ + diff --git a/admin/tables/greeting.php b/admin/tables/greeting.php index f5761cb..d3bdfda 100644 --- a/admin/tables/greeting.php +++ b/admin/tables/greeting.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.php @@ -21,6 +21,7 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\Table\Table; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; @@ -28,7 +29,7 @@ use Joomla\Utilities\ArrayHelper; /** * Greetings Table class */ -class Hello_worldTableGreeting extends JTable +class Hello_worldTableGreeting extends Table { /** * Ensure the params and metadata in json encoded in the bind method diff --git a/admin/views/greeting/submitbutton.js b/admin/views/greeting/submitbutton.js index 618a933..3dbbf9e 100644 --- a/admin/views/greeting/submitbutton.js +++ b/admin/views/greeting/submitbutton.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage submitbutton.js diff --git a/admin/views/greeting/tmpl/edit.php b/admin/views/greeting/tmpl/edit.php index 68477da..c84302e 100644 --- a/admin/views/greeting/tmpl/edit.php +++ b/admin/views/greeting/tmpl/edit.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage edit.php diff --git a/admin/views/greeting/view.html.php b/admin/views/greeting/view.html.php index a8af7ed..71236fc 100644 --- a/admin/views/greeting/view.html.php +++ b/admin/views/greeting/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Greeting View class + * Greeting Html View class */ -class Hello_worldViewGreeting extends JViewLegacy +class Hello_worldViewGreeting extends HtmlView { /** * display method of View diff --git a/admin/views/greetings/tmpl/default.php b/admin/views/greetings/tmpl/default.php index 5acc35c..0455e69 100644 --- a/admin/views/greetings/tmpl/default.php +++ b/admin/views/greetings/tmpl/default.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default.php diff --git a/admin/views/greetings/tmpl/default_batch_body.php b/admin/views/greetings/tmpl/default_batch_body.php index 52b8493..9888774 100644 --- a/admin/views/greetings/tmpl/default_batch_body.php +++ b/admin/views/greetings/tmpl/default_batch_body.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_batch_body.php diff --git a/admin/views/greetings/tmpl/default_batch_footer.php b/admin/views/greetings/tmpl/default_batch_footer.php index 84d1965..f16405b 100644 --- a/admin/views/greetings/tmpl/default_batch_footer.php +++ b/admin/views/greetings/tmpl/default_batch_footer.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_batch_footer.php diff --git a/admin/views/greetings/tmpl/default_body.php b/admin/views/greetings/tmpl/default_body.php index 493bdd7..09cf6cb 100644 --- a/admin/views/greetings/tmpl/default_body.php +++ b/admin/views/greetings/tmpl/default_body.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_body.php diff --git a/admin/views/greetings/tmpl/default_foot.php b/admin/views/greetings/tmpl/default_foot.php index 303a515..ff11a8c 100644 --- a/admin/views/greetings/tmpl/default_foot.php +++ b/admin/views/greetings/tmpl/default_foot.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_foot.php diff --git a/admin/views/greetings/tmpl/default_head.php b/admin/views/greetings/tmpl/default_head.php index 8d655dd..48abd10 100644 --- a/admin/views/greetings/tmpl/default_head.php +++ b/admin/views/greetings/tmpl/default_head.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_head.php diff --git a/admin/views/greetings/tmpl/default_toolbar.php b/admin/views/greetings/tmpl/default_toolbar.php index ddee64b..7816010 100644 --- a/admin/views/greetings/tmpl/default_toolbar.php +++ b/admin/views/greetings/tmpl/default_toolbar.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_toolbar.php diff --git a/admin/views/greetings/view.html.php b/admin/views/greetings/view.html.php index 9f20988..df2cbc0 100644 --- a/admin/views/greetings/view.html.php +++ b/admin/views/greetings/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Hello_world View class for the Greetings + * Hello_world Html View class for the Greetings */ -class Hello_worldViewGreetings extends JViewLegacy +class Hello_worldViewGreetings extends HtmlView { /** * Greetings view display method diff --git a/admin/views/hello_world/tmpl/default.php b/admin/views/hello_world/tmpl/default.php index 70b2c90..1c1df20 100644 --- a/admin/views/hello_world/tmpl/default.php +++ b/admin/views/hello_world/tmpl/default.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default.php diff --git a/admin/views/hello_world/tmpl/default_main.php b/admin/views/hello_world/tmpl/default_main.php index 8c88a97..4ac14df 100644 --- a/admin/views/hello_world/tmpl/default_main.php +++ b/admin/views/hello_world/tmpl/default_main.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_main.php diff --git a/admin/views/hello_world/tmpl/default_vdm.php b/admin/views/hello_world/tmpl/default_vdm.php index 8f95b85..9662d54 100644 --- a/admin/views/hello_world/tmpl/default_vdm.php +++ b/admin/views/hello_world/tmpl/default_vdm.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default_vdm.php diff --git a/admin/views/hello_world/view.html.php b/admin/views/hello_world/view.html.php index df63bc6..b8ce8e2 100644 --- a/admin/views/hello_world/view.html.php +++ b/admin/views/hello_world/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php diff --git a/admin/views/import/tmpl/default.php b/admin/views/import/tmpl/default.php index 69be733..edc6481 100644 --- a/admin/views/import/tmpl/default.php +++ b/admin/views/import/tmpl/default.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default.php diff --git a/admin/views/import/view.html.php b/admin/views/import/view.html.php index 97c659a..1acaddb 100644 --- a/admin/views/import/view.html.php +++ b/admin/views/import/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Hello_world Import View + * Hello_world Import Html View */ -class Hello_worldViewImport extends JViewLegacy +class Hello_worldViewImport extends HtmlView { protected $headerList; protected $hasPackage = false; diff --git a/hello_world.xml b/hello_world.xml index 019ac7f..6d38098 100644 --- a/hello_world.xml +++ b/hello_world.xml @@ -1,15 +1,15 @@ COM_HELLO_WORLD - 3rd March, 2022 + 27th May, 2022 Llewellyn joomla@vdm.io https://www.vdm.io Copyright (C) 2015. All Rights Reserved GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html - 1.0.1 + 1.1.0 Hello World (v.1.0.1) +

Hello World (v.1.1.0)

Created by Llewellyn
Development started 20th September, 2017

diff --git a/helloworld_updateserver.xml b/helloworld_updateserver.xml index 001f2e5..5088a72 100644 --- a/helloworld_updateserver.xml +++ b/helloworld_updateserver.xml @@ -7,7 +7,24 @@ 1.0.1 https://www.vdm.io - https://github.com/Llewellynvdm/Joomla-Hello-World-Component/archive/master.zip + https://git.vdm.dev/joomla/Hello-World-Component/archive/v1.0.1.zip + + + stable + + Llewellyn + https://www.vdm.io + + + + Hello World + Hello World + com_hello_world + component + 1.1.0 + https://www.vdm.io + + https://git.vdm.dev/joomla/Hello-World-Component/archive/v1.1.0.zip stable diff --git a/media/js/greeting.js b/media/js/greeting.js index a88eabf..d5fab6c 100644 --- a/media/js/greeting.js +++ b/media/js/greeting.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.js diff --git a/script.php b/script.php index 7b36001..19e356c 100644 --- a/script.php +++ b/script.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage script.php @@ -572,7 +572,7 @@ class com_hello_worldInstallerScript echo ' -

Upgrade to Version 1.0.1 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 1.1.0 Was Successful! Let us know if anything is not working as expected.

'; // Set db if not set already. if (!isset($db)) diff --git a/site/assets/css/greet.css b/site/assets/css/greet.css index 01ae2d7..5dea598 100644 --- a/site/assets/css/greet.css +++ b/site/assets/css/greet.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greet.css diff --git a/site/assets/css/greeting.css b/site/assets/css/greeting.css index 05bd8e8..dcf5476 100644 --- a/site/assets/css/greeting.css +++ b/site/assets/css/greeting.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.css diff --git a/site/assets/css/greetings.css b/site/assets/css/greetings.css index 71a85ef..ea179de 100644 --- a/site/assets/css/greetings.css +++ b/site/assets/css/greetings.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greetings.css diff --git a/site/assets/css/site.css b/site/assets/css/site.css index 3e5c25e..01aae6c 100644 --- a/site/assets/css/site.css +++ b/site/assets/css/site.css @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage site.css diff --git a/site/assets/js/site.js b/site/assets/js/site.js index d2f4b1d..658bee8 100644 --- a/site/assets/js/site.js +++ b/site/assets/js/site.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage site.js diff --git a/site/controller.php b/site/controller.php index b63fa96..ea87b9e 100644 --- a/site/controller.php +++ b/site/controller.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage controller.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Component Controller + * Hello_world Component Base Controller */ -class Hello_worldController extends JControllerLegacy +class Hello_worldController extends BaseController { /** * Method to display a view. diff --git a/site/controllers/greeting.php b/site/controllers/greeting.php index 5fa737f..5111228 100644 --- a/site/controllers/greeting.php +++ b/site/controllers/greeting.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Controller\FormController; use Joomla\Utilities\ArrayHelper; /** - * Greeting Controller + * Greeting Form Controller */ -class Hello_worldControllerGreeting extends JControllerForm +class Hello_worldControllerGreeting extends FormController { /** * Current or most recently performed task. diff --git a/site/hello_world.php b/site/hello_world.php index db22bc5..77b6372 100644 --- a/site/hello_world.php +++ b/site/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php diff --git a/site/helpers/category.php b/site/helpers/category.php index e8a96ad..3e0bb70 100644 --- a/site/helpers/category.php +++ b/site/helpers/category.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage category.php diff --git a/site/helpers/headercheck.php b/site/helpers/headercheck.php index 5cab117..142b597 100644 --- a/site/helpers/headercheck.php +++ b/site/helpers/headercheck.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage headercheck.php diff --git a/site/helpers/hello_world.php b/site/helpers/hello_world.php index 1e13c22..894739c 100644 --- a/site/helpers/hello_world.php +++ b/site/helpers/hello_world.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage hello_world.php @@ -1611,3 +1611,4 @@ abstract class Hello_worldHelper return implode($key); } } + diff --git a/site/helpers/route.php b/site/helpers/route.php index fc4a0be..bee7f6f 100644 --- a/site/helpers/route.php +++ b/site/helpers/route.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage route.php diff --git a/site/layouts/greeting/details_left.php b/site/layouts/greeting/details_left.php index 1033f06..79f30f5 100644 --- a/site/layouts/greeting/details_left.php +++ b/site/layouts/greeting/details_left.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage details_left.php diff --git a/site/layouts/greeting/metadata.php b/site/layouts/greeting/metadata.php index cf7d1ee..d2965f0 100644 --- a/site/layouts/greeting/metadata.php +++ b/site/layouts/greeting/metadata.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage metadata.php diff --git a/site/layouts/greeting/publishing.php b/site/layouts/greeting/publishing.php index 382da4d..c66a155 100644 --- a/site/layouts/greeting/publishing.php +++ b/site/layouts/greeting/publishing.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage publishing.php diff --git a/site/models/forms/greeting.js b/site/models/forms/greeting.js index a88eabf..d5fab6c 100644 --- a/site/models/forms/greeting.js +++ b/site/models/forms/greeting.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.js diff --git a/site/models/greet.php b/site/models/greet.php index ecd733e..41fe2f3 100644 --- a/site/models/greet.php +++ b/site/models/greet.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greet.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ItemModel; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Greet Model + * Hello_world Greet Item Model */ -class Hello_worldModelGreet extends JModelItem +class Hello_worldModelGreet extends ItemModel { /** * Model context string. diff --git a/site/models/greeting.php b/site/models/greeting.php index 374528f..9dccba9 100644 --- a/site/models/greeting.php +++ b/site/models/greeting.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greeting.php @@ -21,14 +21,15 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\AdminModel; use Joomla\Registry\Registry; use Joomla\String\StringHelper; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Greeting Model + * Hello_world Greeting Admin Model */ -class Hello_worldModelGreeting extends JModelAdmin +class Hello_worldModelGreeting extends AdminModel { /** * The tab layout fields array. diff --git a/site/models/greetings.php b/site/models/greetings.php index 4e00128..cf5cb1b 100644 --- a/site/models/greetings.php +++ b/site/models/greetings.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage greetings.php @@ -21,12 +21,13 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\Model\ListModel; use Joomla\Utilities\ArrayHelper; /** - * Hello_world Model for Greetings + * Hello_world List Model for Greetings */ -class Hello_worldModelGreetings extends JModelList +class Hello_worldModelGreetings extends ListModel { /** * Model user data. diff --git a/site/router.php b/site/router.php index 17ac361..e40b9b7 100644 --- a/site/router.php +++ b/site/router.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage router.php diff --git a/site/views/greet/tmpl/default.php b/site/views/greet/tmpl/default.php index 668b03a..e7b6ddd 100644 --- a/site/views/greet/tmpl/default.php +++ b/site/views/greet/tmpl/default.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default.php diff --git a/site/views/greet/view.html.php b/site/views/greet/view.html.php index 95d5864..be44e06 100644 --- a/site/views/greet/view.html.php +++ b/site/views/greet/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Hello_world View class for the Greet + * Hello_world Html View class for the Greet */ -class Hello_worldViewGreet extends JViewLegacy +class Hello_worldViewGreet extends HtmlView { // Overwriting JView display method function display($tpl = null) @@ -76,12 +78,12 @@ class Hello_worldViewGreet extends JViewLegacy // The uikit css. if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addStyleSheet(JURI::root(true) .'/media/com_hello_world/uikit-v2/css/uikit'.$style.$size.'.css', (Hello_worldHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_hello_world/uikit-v2/css/uikit'.$style.$size.'.css', ['version' => 'auto']); } // The uikit js. if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addScript(JURI::root(true) .'/media/com_hello_world/uikit-v2/js/uikit'.$size.'.js', (Hello_worldHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JHtml::_('script', 'media/com_hello_world/uikit-v2/js/uikit'.$size.'.js', ['version' => 'auto']); } // load the meta description if (isset($this->item->metadesc) && $this->item->metadesc) diff --git a/site/views/greeting/submitbutton.js b/site/views/greeting/submitbutton.js index 618a933..3dbbf9e 100644 --- a/site/views/greeting/submitbutton.js +++ b/site/views/greeting/submitbutton.js @@ -2,8 +2,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage submitbutton.js diff --git a/site/views/greeting/tmpl/edit.php b/site/views/greeting/tmpl/edit.php index d847015..8fc135e 100644 --- a/site/views/greeting/tmpl/edit.php +++ b/site/views/greeting/tmpl/edit.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage edit.php diff --git a/site/views/greeting/view.html.php b/site/views/greeting/view.html.php index 7009168..f01825e 100644 --- a/site/views/greeting/view.html.php +++ b/site/views/greeting/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Greeting View class + * Greeting Html View class */ -class Hello_worldViewGreeting extends JViewLegacy +class Hello_worldViewGreeting extends HtmlView { /** * display method of View diff --git a/site/views/greetings/tmpl/default.php b/site/views/greetings/tmpl/default.php index 185ff1f..e97891f 100644 --- a/site/views/greetings/tmpl/default.php +++ b/site/views/greetings/tmpl/default.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage default.php diff --git a/site/views/greetings/view.html.php b/site/views/greetings/view.html.php index a977a68..ade2ea1 100644 --- a/site/views/greetings/view.html.php +++ b/site/views/greetings/view.html.php @@ -3,8 +3,8 @@ VDM /-------------------------------------------------------------------------------------------------------/ - @version 1.0.1 - @build 3rd March, 2022 + @version 1.1.0 + @build 27th May, 2022 @created 20th September, 2017 @package Hello World @subpackage view.html.php @@ -21,10 +21,12 @@ // No direct access to this file defined('_JEXEC') or die('Restricted access'); +use Joomla\CMS\MVC\View\HtmlView; + /** - * Hello_world View class for the Greetings + * Hello_world Html View class for the Greetings */ -class Hello_worldViewGreetings extends JViewLegacy +class Hello_worldViewGreetings extends HtmlView { // Overwriting JView display method function display($tpl = null) @@ -76,12 +78,12 @@ class Hello_worldViewGreetings extends JViewLegacy // The uikit css. if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addStyleSheet(JURI::root(true) .'/media/com_hello_world/uikit-v2/css/uikit'.$style.$size.'.css', (Hello_worldHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css'); + JHtml::_('stylesheet', 'media/com_hello_world/uikit-v2/css/uikit'.$style.$size.'.css', ['version' => 'auto']); } // The uikit js. if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3) { - $this->document->addScript(JURI::root(true) .'/media/com_hello_world/uikit-v2/js/uikit'.$size.'.js', (Hello_worldHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); + JHtml::_('script', 'media/com_hello_world/uikit-v2/js/uikit'.$size.'.js', ['version' => 'auto']); } // load the meta description if ($this->params->get('menu-meta_description'))