| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/brest/administrator/components/com_djcatalog2/tables/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
defined('_JEXEC') or die;
use Joomla\CMS\Table\Table;
use Joomla\CMS\Language\Text;
/**
* Message Table class
*
*/
class DJCatalog2TableMessage extends Table
{
/**
* Constructor
*
* @param JDatabaseDriver &$db Database connector object
*
* @since 1.5
*/
public function __construct(&$db)
{
parent::__construct('#__djc2_messages', 'id', $db);
}
/**
* Validation and filtering.
*
* @return boolean
*
* @since 1.5
*/
public function check()
{
// Check the to and from users.
/*$user = new JUser($this->user_from);
if (empty($user->id))
{
$this->setError(Text::_('COM_DJCATALOG2_ERROR_INVALID_FROM_USER'));
return false;
}*/
/*$user = new JUser($this->user_to);
if (empty($user->id))
{
$this->setError(Text::_('COM_DJCATALOG2_ERROR_INVALID_TO_USER'));
return false;
}*/
if (empty($this->subject))
{
$this->setError(Text::_('COM_DJCATALOG2_ERROR_INVALID_SUBJECT'));
return false;
}
if (empty($this->message))
{
$this->setError(Text::_('COM_DJCATALOG2_ERROR_INVALID_MESSAGE'));
return false;
}
return true;
}
}