Current Path : /var/www/html/clients/kampol.e-nk.ru/administrator/components/com_joomlapack/tables/ |
Current File : /var/www/html/clients/kampol.e-nk.ru/administrator/components/com_joomlapack/tables/registry.php |
<?php /** * @package JoomlaPack * @copyright Copyright (c)2006-2009 JoomlaPack Developers * @license GNU General Public License version 2, or later * @version $id$ * @since 1.3 */ // Protect from unauthorized access defined('_JEXEC') or die('Restricted Access'); /** * Handles the #__jp_filters entries * */ class TableRegistry extends JTable { /** @var int Primary key */ var $id; /** @var int Profile ID */ var $profile; /** @var string Registry item's key */ var $key; /** @var string Registry item's value */ var $value; /** * Constructor * * @param JDatabase $db Joomla!'s database */ function __construct( &$db ) { parent::__construct('#__jp_registry', 'id', $db); } /** * Validation check * * @return bool True if the contents are valid */ function check() { if(empty($this->profile)) { $this->setError(JText::_('TABLE_MISSING_PROFILE')); return false; } if(empty($this->key)) { $this->setError(JText::_('TABLE_REGISTRY_MISSING_KEY')); return false; } return true; } }