You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
817 B
43 lines
817 B
<?php
|
|
|
|
/**
|
|
* @package Joomla.Site
|
|
* @subpackage com_foos
|
|
*
|
|
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
namespace FooNamespace\Component\Foos\Site\Model;
|
|
|
|
\defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Factory;
|
|
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
|
|
|
|
/**
|
|
* Foo model for the Joomla Foos component.
|
|
*
|
|
* @since __BUMP_VERSION__
|
|
*/
|
|
class FooModel extends BaseDatabaseModel
|
|
{
|
|
/**
|
|
* @var string message
|
|
*/
|
|
protected $message;
|
|
|
|
/**
|
|
* Get the message
|
|
*
|
|
* @return string The message to be displayed to the user
|
|
*/
|
|
public function getMsg()
|
|
{
|
|
$app = Factory::getApplication();
|
|
$this->message = $app->input->get('show_text', "Hi");
|
|
|
|
return $this->message;
|
|
}
|
|
}
|