Updated with JCB v3.1.0

This commit is contained in:
Llewellyn van der Merwe 2022-05-27 07:48:24 +02:00
parent bec2f89d29
commit 4695eff616
Signed by: Llewellyn
GPG Key ID: A9201372263741E7
131 changed files with 469 additions and 378 deletions

View File

@ -1,4 +1,4 @@
# Questions and Answers (1.0.x)
# Questions and Answers (1.1.x)
This is a [Joomla 3.x](http://www.joomla.org/) component.
@ -12,15 +12,15 @@ Just a basic Questions & Answers.
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Questions and Answers](https://www.vdm.io/)
+ *First Build*: 30th January, 2017
+ *Last Build*: 2nd March, 2022
+ *Version*: 1.0.x
+ *Last Build*: 27th May, 2022
+ *Version*: 1.1.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
# Component Number
+ *Line count*: **31397**
+ *File count*: **207**
+ *Line count*: **31488**
+ *File count*: **208**
+ *Folder count*: **63**
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).

View File

@ -1,4 +1,4 @@
# Questions and Answers (1.0.x)
# Questions and Answers (1.1.x)
This is a [Joomla 3.x](http://www.joomla.org/) component.
@ -12,15 +12,15 @@ Just a basic Questions & Answers.
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Questions and Answers](https://www.vdm.io/)
+ *First Build*: 30th January, 2017
+ *Last Build*: 2nd March, 2022
+ *Version*: 1.0.x
+ *Last Build*: 27th May, 2022
+ *Version*: 1.1.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
# Component Number
+ *Line count*: **31397**
+ *File count*: **207**
+ *Line count*: **31488**
+ *File count*: **208**
+ *Folder count*: **63**
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage admin.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage dashboard.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_document.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_documents.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questions_and_answers.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage admin.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage controller.php
@ -26,12 +26,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 Questionsanswers component
*/
class QuestionsanswersController extends JControllerLegacy
class QuestionsanswersController extends BaseController
{
/**
* Constructor.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage ajax.json.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Ajax Controller
* Questionsanswers Ajax Base Controller
*/
class QuestionsanswersControllerAjax extends JControllerLegacy
class QuestionsanswersControllerAjax extends BaseController
{
public function __construct($config)
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage download.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Help Controller
* Questionsanswers Help Base Controller
*/
class QuestionsanswersControllerHelp extends JControllerLegacy
class QuestionsanswersControllerHelp extends BaseController
{
public function __construct($config)
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_document.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\Utilities\ArrayHelper;
/**
* Help_document Controller
* Help_document Form Controller
*/
class QuestionsanswersControllerHelp_document extends JControllerForm
class QuestionsanswersControllerHelp_document extends FormController
{
/**
* Current or most recently performed task.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_documents.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\Utilities\ArrayHelper;
/**
* Help_documents Controller
* Help_documents Admin Controller
*/
class QuestionsanswersControllerHelp_documents extends JControllerAdmin
class QuestionsanswersControllerHelp_documents extends AdminController
{
/**
* The prefix to use with controller messages.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage import.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Import Controller
* Questionsanswers Import Base Controller
*/
class QuestionsanswersControllerImport extends JControllerLegacy
class QuestionsanswersControllerImport extends BaseController
{
/**
* Import an spreadsheet.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\Utilities\ArrayHelper;
/**
* Question_and_answer Controller
* Question_and_answer Form Controller
*/
class QuestionsanswersControllerQuestion_and_answer extends JControllerForm
class QuestionsanswersControllerQuestion_and_answer extends FormController
{
/**
* Current or most recently performed task.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questions_and_answers.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\Utilities\ArrayHelper;
/**
* Questions_and_answers Controller
* Questions_and_answers Admin Controller
*/
class QuestionsanswersControllerQuestions_and_answers extends JControllerAdmin
class QuestionsanswersControllerQuestions_and_answers extends AdminController
{
/**
* The prefix to use with controller messages.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questionsanswers.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Controller
* Questionsanswers Admin Controller
*/
class QuestionsanswersControllerQuestionsanswers extends JControllerAdmin
class QuestionsanswersControllerQuestionsanswers extends AdminController
{
}

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage headercheck.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage batch_.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questionsanswers.php
@ -878,12 +878,12 @@ abstract class QuestionsanswersHelper
}
/**
* File Extension to Mimetype
* File Extensions to Mimetypes
* https://gist.github.com/Llewellynvdm/74be373357e131b8775a7582c3de508b
* http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
*
* @var array
**/
*/
protected static $fileExtensionToMimeType = array(
'123' => 'application/vnd.lotus-1-2-3',
'3dml' => 'text/vnd.in3d.3dml',
@ -1428,6 +1428,7 @@ abstract class QuestionsanswersHelper
'opf' => 'application/oebps-package+xml',
'opml' => 'text/x-opml',
'oprc' => 'application/vnd.palm',
'opus' => 'audio/ogg',
'org' => 'application/vnd.lotus-organizer',
'osf' => 'application/vnd.yamaha.openscoreformat',
'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
@ -1889,7 +1890,7 @@ abstract class QuestionsanswersHelper
*/
// get the extension form file
$extension = \strtolower(\pathinfo($file, \PATHINFO_EXTENSION));
$extension = strtolower(pathinfo($file, PATHINFO_EXTENSION));
// check if we have the extension listed
if (isset(self::$fileExtensionToMimeType[$extension]))
{
@ -3693,3 +3694,4 @@ abstract class QuestionsanswersHelper
return $default;
}
}

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage batchselection.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_above.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_fullwidth.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_left.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_right.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_under.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage publishing.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage publlshing.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_fullwidth.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_rightside.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage details_under.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage metadata.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage publishing.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage trashhelper.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage ajax.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Ajax Model
* Questionsanswers Ajax List Model
*/
class QuestionsanswersModelAjax extends JModelList
class QuestionsanswersModelAjax extends ListModel
{
protected $app_params;
@ -45,8 +46,22 @@ class QuestionsanswersModelAjax extends JModelList
// Used in question_and_answer
/**
* The view persistence details
*
* @var array
* @since 1.0.0
*/
protected $viewid = array();
/**
* The view details loaded via the session
*
* @input string $call The state key
*
* @return mixed
* @since 1.0.0
*/
protected function getViewID($call = 'table')
{
if (!isset($this->viewid[$call]))

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage adminviewfolderlist.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage alloweddocumentformats.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage allowedimageformats.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage articles.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage helpdocumentsfilterlocation.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage helpdocumentsfiltertype.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage siteviewfolderlist.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_document.php
@ -26,14 +26,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;
/**
* Questionsanswers Help_document Model
* Questionsanswers Help_document Admin Model
*/
class QuestionsanswersModelHelp_document extends JModelAdmin
class QuestionsanswersModelHelp_document extends AdminModel
{
/**
* The tab layout fields array.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_documents.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Utilities\ArrayHelper;
/**
* Help_documents Model
* Help_documents List Model
*/
class QuestionsanswersModelHelp_documents extends JModelList
class QuestionsanswersModelHelp_documents extends ListModel
{
public function __construct($config = array())
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage import.php
@ -26,15 +26,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;
/**
* Questionsanswers Import Model
* Questionsanswers Import Base Database Model
*/
class QuestionsanswersModelImport extends JModelLegacy
class QuestionsanswersModelImport extends BaseDatabaseModel
{
// set uploading values
protected $use_streams = false;

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.php
@ -26,14 +26,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;
/**
* Questionsanswers Question_and_answer Model
* Questionsanswers Question_and_answer Admin Model
*/
class QuestionsanswersModelQuestion_and_answer extends JModelAdmin
class QuestionsanswersModelQuestion_and_answer extends AdminModel
{
/**
* The tab layout fields array.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questions_and_answers.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Utilities\ArrayHelper;
/**
* Questions_and_answers Model
* Questions_and_answers List Model
*/
class QuestionsanswersModelQuestions_and_answers extends JModelList
class QuestionsanswersModelQuestions_and_answers extends ListModel
{
public function __construct($config = array())
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questionsanswers.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Model
* Questionsanswers List Model
*/
class QuestionsanswersModelQuestionsanswers extends JModelList
class QuestionsanswersModelQuestionsanswers extends ListModel
{
public function getIcons()
{
@ -325,7 +326,7 @@ jQuery(document).ready( function($) {
jQuery(document).ready(function () {
jQuery.get(getreadme)
.success(function(readme) {
jQuery("#readme-md").html(marked(readme));
jQuery("#readme-md").html(marked.parse(readme));
})
.error(function(jqXHR, textStatus, errorThrown) {
jQuery("#readme-md").html("'.JText::_('COM_QUESTIONSANSWERS_PLEASE_CHECK_AGAIN_LATTER').'");

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questionsanswers.php

View File

@ -0,0 +1 @@

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_document.php
@ -26,6 +26,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;
@ -33,7 +34,7 @@ use Joomla\Utilities\ArrayHelper;
/**
* Help_documents Table class
*/
class QuestionsanswersTableHelp_document extends JTable
class QuestionsanswersTableHelp_document extends Table
{
/**
* Ensure the params and metadata in json encoded in the bind method

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.php
@ -26,6 +26,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;
@ -33,7 +34,7 @@ use Joomla\Utilities\ArrayHelper;
/**
* Questions_and_answers Table class
*/
class QuestionsanswersTableQuestion_and_answer extends JTable
class QuestionsanswersTableQuestion_and_answer extends Table
{
/**
* Ensure the params and metadata in json encoded in the bind method

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage submitbutton.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage edit.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php
@ -26,10 +26,12 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
/**
* Help_document View class
* Help_document Html View class
*/
class QuestionsanswersViewHelp_document extends JViewLegacy
class QuestionsanswersViewHelp_document extends HtmlView
{
/**
* display method of View

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_batch_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_batch_footer.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_foot.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_head.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_toolbar.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php
@ -26,10 +26,12 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
/**
* Questionsanswers View class for the Help_documents
* Questionsanswers Html View class for the Help_documents
*/
class QuestionsanswersViewHelp_documents extends JViewLegacy
class QuestionsanswersViewHelp_documents extends HtmlView
{
/**
* Help_documents view display method

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php
@ -26,10 +26,12 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
/**
* Questionsanswers Import View
* Questionsanswers Import Html View
*/
class QuestionsanswersViewImport extends JViewLegacy
class QuestionsanswersViewImport extends HtmlView
{
protected $headerList;
protected $hasPackage = false;

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage submitbutton.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage edit.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php
@ -26,10 +26,12 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
/**
* Question_and_answer View class
* Question_and_answer Html View class
*/
class QuestionsanswersViewQuestion_and_answer extends JViewLegacy
class QuestionsanswersViewQuestion_and_answer extends HtmlView
{
/**
* display method of View

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_batch_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_batch_footer.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_foot.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_head.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_toolbar.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Filesystem\File;
/**
* Questionsanswers View class for the Questions_and_answers
* Questionsanswers Html View class for the Questions_and_answers
*/
class QuestionsanswersViewQuestions_and_answers extends JViewLegacy
class QuestionsanswersViewQuestions_and_answers extends HtmlView
{
/**
* Questions_and_answers view display method

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_main.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_readme_information.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_vast_development_method_notice_board.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage default_vdm.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage view.html.php

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage A4.print.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help_document.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.js

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4" method="upgrade">
<name>COM_QUESTIONSANSWERS</name>
<creationDate>2nd March, 2022</creationDate>
<creationDate>27th May, 2022</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://www.vdm.io/</authorUrl>
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>1.0.4</version>
<version>1.1.0</version>
<description><![CDATA[
<h1>Questions and Answers (v.1.0.4)</h1>
<h1>Questions and Answers (v.1.1.0)</h1>
<div style="clear: both;"></div>
<p>Just a basic Questions & Answers.</p>
<p>Created by <a href="https://www.vdm.io/" target="_blank">Llewellyn van der Merwe</a><br /><small>Development started 30th January, 2017</small></p>

View File

@ -7,7 +7,7 @@
<version>1.0.2</version>
<infourl title="Questions and Answers!">https://www.vdm.io/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Questions-and-Answers/archive/master.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/joomla/Questions-and-Answers/archive/v1.0.4.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
@ -24,7 +24,24 @@
<version>1.0.4</version>
<infourl title="Questions and Answers!">https://www.vdm.io/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Questions-and-Answers/archive/master.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/joomla/Questions-and-Answers/archive/v1.0.4.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>https://www.vdm.io/</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>Questions and Answers</name>
<description>Questions &amp; Answers</description>
<element>com_questionsanswers</element>
<type>component</type>
<version>1.1.0</version>
<infourl title="Questions and Answers!">https://www.vdm.io/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/joomla/Questions-and-Answers/archive/v1.1.0.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage script.php
@ -812,7 +812,7 @@ class com_questionsanswersInstallerScript
echo '<a target="_blank" href="https://www.vdm.io/" title="Questions and Answers">
<img src="components/com_questionsanswers/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 1.0.4 Was Successful! Let us know if anything is not working as expected.</h3>';
<h3>Upgrade to Version 1.1.0 Was Successful! Let us know if anything is not working as expected.</h3>';
// Set db if not set already.
if (!isset($db))

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage category.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage downloads.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage question_and_answer.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage questions_and_answers.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage site.css

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage site.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage controller.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Component Controller
* Questionsanswers Component Base Controller
*/
class QuestionsanswersController extends JControllerLegacy
class QuestionsanswersController extends BaseController
{
/**
* Method to display a view.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage ajax.json.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Ajax Controller
* Questionsanswers Ajax Base Controller
*/
class QuestionsanswersControllerAjax extends JControllerLegacy
class QuestionsanswersControllerAjax extends BaseController
{
public function __construct($config)
{

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage download.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 1.0.x
@build 2nd March, 2022
@version 1.1.x
@build 27th May, 2022
@created 30th January, 2017
@package Questions and Answers
@subpackage help.php
@ -26,12 +26,13 @@
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\Utilities\ArrayHelper;
/**
* Questionsanswers Help Controller
* Questionsanswers Help Base Controller
*/
class QuestionsanswersControllerHelp extends JControllerLegacy
class QuestionsanswersControllerHelp extends BaseController
{
public function __construct($config)
{

Some files were not shown because too many files have changed in this diff Show More