| Current Path : /home/w/u/e/wuectly/www/03cbe/ |
| Current File : /home/w/u/e/wuectly/www/03cbe/tables.zip |
PK %�!]]u��� � group.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_fields
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/**
* Groups Table
*
* @since 3.7.0
*/
class FieldsTableGroup extends JTable
{
/**
* Class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver object.
*
* @since 3.7.0
*/
public function __construct($db = null)
{
parent::__construct('#__fields_groups', 'id', $db);
$this->setColumnAlias('published', 'state');
}
/**
* Method to bind an associative array or object to the JTable instance.This
* method only binds properties that are publicly accessible and optionally
* takes an array of properties to ignore when binding.
*
* @param mixed $src An associative array or object to bind to the JTable instance.
* @param mixed $ignore An optional array or space separated list of properties to ignore while binding.
*
* @return boolean True on success.
*
* @since 3.7.0
* @throws InvalidArgumentException
*/
public function bind($src, $ignore = '')
{
if (isset($src['params']) && is_array($src['params']))
{
$registry = new Registry;
$registry->loadArray($src['params']);
$src['params'] = (string) $registry;
}
// Bind the rules.
if (isset($src['rules']) && is_array($src['rules']))
{
$rules = new JAccessRules($src['rules']);
$this->setRules($rules);
}
return parent::bind($src, $ignore);
}
/**
* Method to perform sanity checks on the JTable instance properties to ensure
* they are safe to store in the database. Child classes should override this
* method to make sure the data they are storing in the database is safe and
* as expected before storage.
*
* @return boolean True if the instance is sane and able to be stored in the database.
*
* @link https://docs.joomla.org/Special:MyLanguage/JTable/check
* @since 3.7.0
*/
public function check()
{
// Check for a title.
if (trim($this->title) == '')
{
$this->setError(JText::_('COM_FIELDS_MUSTCONTAIN_A_TITLE_GROUP'));
return false;
}
$date = JFactory::getDate();
$user = JFactory::getUser();
if ($this->id)
{
$this->modified = $date->toSql();
$this->modified_by = $user->get('id');
}
else
{
if (!(int) $this->created)
{
$this->created = $date->toSql();
}
if (empty($this->created_by))
{
$this->created_by = $user->get('id');
}
}
return true;
}
/**
* Method to compute the default name of the asset.
* The default name is in the form table_name.id
* where id is the value of the primary key of the table.
*
* @return string
*
* @since 3.7.0
*/
protected function _getAssetName()
{
$component = explode('.', $this->context);
return $component[0] . '.fieldgroup.' . (int) $this->id;
}
/**
* Method to return the title to use for the asset table. In
* tracking the assets a title is kept for each asset so that there is some
* context available in a unified access manager. Usually this would just
* return $this->title or $this->name or whatever is being used for the
* primary name of the row. If this method is not overridden, the asset name is used.
*
* @return string The string to use as the title in the asset table.
*
* @link https://docs.joomla.org/Special:MyLanguage/JTable/getAssetTitle
* @since 3.7.0
*/
protected function _getAssetTitle()
{
return $this->title;
}
/**
* Method to get the parent asset under which to register this one.
* By default, all assets are registered to the ROOT node with ID,
* which will default to 1 if none exists.
* The extended class can define a table and id to lookup. If the
* asset does not exist it will be created.
*
* @param JTable $table A JTable object for the asset parent.
* @param integer $id Id to look up
*
* @return integer
*
* @since 3.7.0
*/
protected function _getAssetParentId(JTable $table = null, $id = null)
{
$component = explode('.', $this->context);
$db = $this->getDbo();
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from($db->quoteName('#__assets'))
->where($db->quoteName('name') . ' = ' . $db->quote($component[0]));
$db->setQuery($query);
if ($assetId = (int) $db->loadResult())
{
return $assetId;
}
return parent::_getAssetParentId($table, $id);
}
}
PK %�!]�o3k k field.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_fields
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/**
* Fields Table
*
* @since 3.7.0
*/
class FieldsTableField extends JTable
{
/**
* Class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver object.
*
* @since 3.7.0
*/
public function __construct($db = null)
{
parent::__construct('#__fields', 'id', $db);
$this->setColumnAlias('published', 'state');
}
/**
* Method to bind an associative array or object to the JTable instance.This
* method only binds properties that are publicly accessible and optionally
* takes an array of properties to ignore when binding.
*
* @param mixed $src An associative array or object to bind to the JTable instance.
* @param mixed $ignore An optional array or space separated list of properties to ignore while binding.
*
* @return boolean True on success.
*
* @since 3.7.0
* @throws InvalidArgumentException
*/
public function bind($src, $ignore = '')
{
if (isset($src['params']) && is_array($src['params']))
{
$registry = new Registry;
$registry->loadArray($src['params']);
$src['params'] = (string) $registry;
}
if (isset($src['fieldparams']) && is_array($src['fieldparams']))
{
$registry = new Registry;
$registry->loadArray($src['fieldparams']);
$src['fieldparams'] = (string) $registry;
}
// Bind the rules.
if (isset($src['rules']) && is_array($src['rules']))
{
$rules = new JAccessRules($src['rules']);
$this->setRules($rules);
}
return parent::bind($src, $ignore);
}
/**
* Method to perform sanity checks on the JTable instance properties to ensure
* they are safe to store in the database. Child classes should override this
* method to make sure the data they are storing in the database is safe and
* as expected before storage.
*
* @return boolean True if the instance is sane and able to be stored in the database.
*
* @link https://docs.joomla.org/Special:MyLanguage/JTable/check
* @since 3.7.0
*/
public function check()
{
// Check for valid name
if (trim($this->title) == '')
{
$this->setError(JText::_('COM_FIELDS_MUSTCONTAIN_A_TITLE_FIELD'));
return false;
}
if (empty($this->name))
{
$this->name = $this->title;
}
$this->name = JApplicationHelper::stringURLSafe($this->name, $this->language);
if (trim(str_replace('-', '', $this->name)) == '')
{
$this->name = Joomla\String\StringHelper::increment($this->name, 'dash');
}
$this->name = str_replace(',', '-', $this->name);
// Verify that the name is unique
$table = JTable::getInstance('Field', 'FieldsTable', array('dbo' => $this->_db));
if ($table->load(array('name' => $this->name)) && ($table->id != $this->id || $this->id == 0))
{
$this->setError(JText::_('COM_FIELDS_ERROR_UNIQUE_NAME'));
return false;
}
$this->name = str_replace(',', '-', $this->name);
if (empty($this->type))
{
$this->type = 'text';
}
$date = JFactory::getDate();
$user = JFactory::getUser();
if ($this->id)
{
// Existing item
$this->modified_time = $date->toSql();
$this->modified_by = $user->get('id');
}
else
{
if (!(int) $this->created_time)
{
$this->created_time = $date->toSql();
}
if (empty($this->created_user_id))
{
$this->created_user_id = $user->get('id');
}
}
if (empty($this->group_id))
{
$this->group_id = 0;
}
return true;
}
/**
* Method to compute the default name of the asset.
* The default name is in the form table_name.id
* where id is the value of the primary key of the table.
*
* @return string
*
* @since 3.7.0
*/
protected function _getAssetName()
{
$contextArray = explode('.', $this->context);
return $contextArray[0] . '.field.' . (int) $this->id;
}
/**
* Method to return the title to use for the asset table. In
* tracking the assets a title is kept for each asset so that there is some
* context available in a unified access manager. Usually this would just
* return $this->title or $this->name or whatever is being used for the
* primary name of the row. If this method is not overridden, the asset name is used.
*
* @return string The string to use as the title in the asset table.
*
* @link https://docs.joomla.org/Special:MyLanguage/JTable/getAssetTitle
* @since 3.7.0
*/
protected function _getAssetTitle()
{
return $this->title;
}
/**
* Method to get the parent asset under which to register this one.
* By default, all assets are registered to the ROOT node with ID,
* which will default to 1 if none exists.
* The extended class can define a table and id to lookup. If the
* asset does not exist it will be created.
*
* @param JTable $table A JTable object for the asset parent.
* @param integer $id Id to look up
*
* @return integer
*
* @since 3.7.0
*/
protected function _getAssetParentId(JTable $table = null, $id = null)
{
$contextArray = explode('.', $this->context);
$component = $contextArray[0];
if ($this->group_id)
{
$assetId = $this->getAssetId($component . '.fieldgroup.' . (int) $this->group_id);
if ($assetId)
{
return $assetId;
}
}
else
{
$assetId = $this->getAssetId($component);
if ($assetId)
{
return $assetId;
}
}
return parent::_getAssetParentId($table, $id);
}
/**
* Returns an asset id for the given name or false.
*
* @param string $name The asset name
*
* @return number|boolean
*
* @since 3.7.0
*/
private function getAssetId($name)
{
$db = $this->getDbo();
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from($db->quoteName('#__assets'))
->where($db->quoteName('name') . ' = ' . $db->quote($name));
// Get the asset id from the database.
$db->setQuery($query);
$assetId = null;
if ($result = $db->loadResult())
{
$assetId = (int) $result;
if ($assetId)
{
return $assetId;
}
}
return false;
}
}
PK u�!]ߕJ�~ ~ style.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_templates
*
* @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
/**
* Template style table class.
*
* @since 1.6
*/
class TemplatesTableStyle extends JTable
{
/**
* Constructor
*
* @param JDatabaseDriver &$db A database connector object
*
* @since 1.6
*/
public function __construct(&$db)
{
parent::__construct('#__template_styles', 'id', $db);
}
/**
* Overloaded bind function to pre-process the params.
*
* @param array $array Named array
* @param mixed $ignore An optional array or space separated list of properties to ignore while binding.
*
* @return null|string null if operation was satisfactory, otherwise returns an error
*
* @since 1.6
*/
public function bind($array, $ignore = '')
{
if (isset($array['params']) && is_array($array['params']))
{
$registry = new Registry($array['params']);
$array['params'] = (string) $registry;
}
// Verify that the default style is not unset
if ($array['home'] == '0' && $this->home == '1')
{
$this->setError(JText::_('COM_TEMPLATES_ERROR_CANNOT_UNSET_DEFAULT_STYLE'));
return false;
}
return parent::bind($array, $ignore);
}
/**
* Overloaded check method to ensure data integrity.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function check()
{
if (empty($this->title))
{
$this->setError(JText::_('COM_TEMPLATES_ERROR_STYLE_REQUIRES_TITLE'));
return false;
}
return true;
}
/**
* Overloaded store method to ensure unicity of default style.
*
* @param boolean $updateNulls True to update fields even if they are null.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function store($updateNulls = false)
{
if ($this->home != '0')
{
$query = $this->_db->getQuery(true)
->update('#__template_styles')
->set('home=\'0\'')
->where('client_id=' . (int) $this->client_id)
->where('home=' . $this->_db->quote($this->home));
$this->_db->setQuery($query);
$this->_db->execute();
}
return parent::store($updateNulls);
}
/**
* Overloaded store method to unsure existence of a default style for a template.
*
* @param mixed $pk An optional primary key value to delete. If not set the instance property value is used.
*
* @return boolean True on success.
*
* @since 1.6
*/
public function delete($pk = null)
{
$k = $this->_tbl_key;
$pk = is_null($pk) ? $this->$k : $pk;
if (!is_null($pk))
{
$query = $this->_db->getQuery(true)
->from('#__template_styles')
->select('id')
->where('client_id=' . (int) $this->client_id)
->where('template=' . $this->_db->quote($this->template));
$this->_db->setQuery($query);
$results = $this->_db->loadColumn();
if (count($results) == 1 && $results[0] == $pk)
{
$this->setError(JText::_('COM_TEMPLATES_ERROR_CANNOT_DELETE_LAST_STYLE'));
return false;
}
}
return parent::delete($pk);
}
}
PK @�!]�T�- - menu.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_menus
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Menu table
*
* @since 1.6
*/
class MenusTableMenu extends JTableMenu
{
/**
* Method to delete a node and, optionally, its child nodes from the table.
*
* @param integer $pk The primary key of the node to delete.
* @param boolean $children True to delete child nodes, false to move them up a level.
*
* @return boolean True on success.
*
* @since 2.5
*/
public function delete($pk = null, $children = false)
{
$return = parent::delete($pk, $children);
if ($return)
{
// Delete key from the #__modules_menu table
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->delete($db->quoteName('#__modules_menu'))
->where($db->quoteName('menuid') . ' = ' . $pk);
$db->setQuery($query);
$db->execute();
}
return $return;
}
}
PK B�!]Z�y= = request.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_privacy
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Table interface class for the #__privacy_requests table
*
* @property integer $id Item ID (primary key)
* @property string $email The email address of the individual requesting the data
* @property string $requested_at The time the request was created at
* @property integer $status The status of the information request
* @property string $request_type The type of information request
* @property string $confirm_token Hashed token for confirming the information request
* @property string $confirm_token_created_at The time the confirmation token was generated
*
* @since 3.9.0
*/
class PrivacyTableRequest extends JTable
{
/**
* The class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
*
* @since 3.9.0
*/
public function __construct(JDatabaseDriver $db)
{
parent::__construct('#__privacy_requests', 'id', $db);
}
/**
* Method to store a row in the database from the Table instance properties.
*
* @param boolean $updateNulls True to update fields even if they are null.
*
* @return boolean True on success.
*
* @since 3.9.0
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
// Set default values for new records
if (!$this->id)
{
if (!$this->status)
{
$this->status = '0';
}
if (!$this->requested_at)
{
$this->requested_at = $date->toSql();
}
}
return parent::store($updateNulls);
}
}
PK B�!]<X��� � consent.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_privacy
*
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Table interface class for the #__privacy_consents table
*
* @property integer $id Item ID (primary key)
* @property integer $remind The status of the reminder request
* @property string $token Hashed token for the reminder request
* @property integer $user_id User ID (pseudo foreign key to the #__users table) if the request is associated to a user account
*
* @since 3.9.0
*/
class PrivacyTableConsent extends JTable
{
/**
* The class constructor.
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
*
* @since 3.9.0
*/
public function __construct(JDatabaseDriver $db)
{
parent::__construct('#__privacy_consents', 'id', $db);
}
/**
* Method to store a row in the database from the Table instance properties.
*
* @param boolean $updateNulls True to update fields even if they are null.
*
* @return boolean True on success.
*
* @since 3.9.0
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
// Set default values for new records
if (!$this->id)
{
if (!$this->remind)
{
$this->remind = '0';
}
if (!$this->created)
{
$this->created = $date->toSql();
}
}
return parent::store($updateNulls);
}
}
PK �!]�}ZR R link.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Link table class for the Finder package.
*
* @since 2.5
*/
class FinderTableLink extends JTable
{
/**
* Constructor
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
*
* @since 2.5
*/
public function __construct(&$db)
{
parent::__construct('#__finder_links', 'link_id', $db);
}
}
PK �!]꫞�� � map.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Utilities\ArrayHelper;
/**
* Map table class for the Finder package.
*
* @since 2.5
*/
class FinderTableMap extends JTable
{
/**
* Constructor
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
*
* @since 2.5
*/
public function __construct(&$db)
{
parent::__construct('#__finder_taxonomy', 'id', $db);
}
/**
* Method to set the publishing state for a row or list of rows in the database
* table. The method respects checked out rows by other users and will attempt
* to checkin rows that it can after adjustments are made.
*
* @param mixed $pks An array of primary key values to update. If not
* set the instance property value is used. [optional]
* @param integer $state The publishing state. eg. [0 = unpublished, 1 = published] [optional]
* @param integer $userId The user id of the user performing the operation. [optional]
*
* @return boolean True on success.
*
* @since 2.5
*/
public function publish($pks = null, $state = 1, $userId = 0)
{
$k = $this->_tbl_key;
// Sanitize input.
$pks = ArrayHelper::toInteger($pks);
$state = (int) $state;
// If there are no primary keys set check to see if the instance key is set.
if (empty($pks))
{
if ($this->$k)
{
$pks = array($this->$k);
}
// Nothing to set publishing state on, return false.
else
{
$this->setError(JText::_('JLIB_DATABASE_ERROR_NO_ROWS_SELECTED'));
return false;
}
}
// Build the WHERE clause for the primary keys.
$where = $k . '=' . implode(' OR ' . $k . '=', $pks);
// Update the publishing state for rows with the given primary keys.
$query = $this->_db->getQuery(true)
->update($this->_db->quoteName($this->_tbl))
->set($this->_db->quoteName('state') . ' = ' . (int) $state)
->where($where);
$this->_db->setQuery($query);
try
{
$this->_db->execute();
}
catch (RuntimeException $e)
{
$this->setError($e->getMessage());
return false;
}
// If the JTable instance value is in the list of primary keys that were set, set the instance.
if (in_array($this->$k, $pks))
{
$this->state = $state;
}
$this->setError('');
return true;
}
}
PK �!]y�I.� �
filter.phpnu &1i� <?php
/**
* @package Joomla.Administrator
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;
/**
* Filter table class for the Finder package.
*
* @since 2.5
*/
class FinderTableFilter extends JTable
{
/**
* Constructor
*
* @param JDatabaseDriver $db JDatabaseDriver connector object.
*
* @since 2.5
*/
public function __construct(&$db)
{
parent::__construct('#__finder_filters', 'filter_id', $db);
$this->setColumnAlias('published', 'state');
}
/**
* Method to bind an associative array or object to the JTable instance. This
* method only binds properties that are publicly accessible and optionally
* takes an array of properties to ignore when binding.
*
* @param array $array Named array
* @param mixed $ignore An optional array or space separated list of properties
* to ignore while binding. [optional]
*
* @return mixed Null if operation was satisfactory, otherwise returns an error string
*
* @since 2.5
*/
public function bind($array, $ignore = '')
{
if (isset($array['params']) && is_array($array['params']))
{
$registry = new Registry($array['params']);
$array['params'] = (string) $registry;
}
return parent::bind($array, $ignore);
}
/**
* Method to perform sanity checks on the JTable instance properties to ensure
* they are safe to store in the database. Child classes should override this
* method to make sure the data they are storing in the database is safe and
* as expected before storage.
*
* @return boolean True if the instance is sane and able to be stored in the database.
*
* @since 2.5
*/
public function check()
{
if (trim($this->alias) === '')
{
$this->alias = $this->title;
}
$this->alias = JApplicationHelper::stringURLSafe($this->alias);
if (trim(str_replace('-', '', $this->alias)) === '')
{
$this->alias = JFactory::getDate()->format('Y-m-d-H-i-s');
}
$params = new Registry($this->params);
$nullDate = $this->_db->getNullDate();
$d1 = $params->get('d1', $nullDate);
$d2 = $params->get('d2', $nullDate);
// Check the end date is not earlier than the start date.
if ($d2 > $nullDate && $d2 < $d1)
{
// Swap the dates.
$params->set('d1', $d2);
$params->set('d2', $d1);
$this->params = (string) $params;
}
return true;
}
/**
* Method to set the publishing state for a row or list of rows in the database
* table. The method respects checked out rows by other users and will attempt
* to checkin rows that it can after adjustments are made.
*
* @param mixed $pks An array of primary key values to update. If not
* set the instance property value is used. [optional]
* @param integer $state The publishing state. eg. [0 = unpublished, 1 = published] [optional]
* @param integer $userId The user id of the user performing the operation. [optional]
*
* @return boolean True on success.
*
* @since 2.5
*/
public function publish($pks = null, $state = 1, $userId = 0)
{
$k = $this->_tbl_key;
// Sanitize input.
$pks = ArrayHelper::toInteger($pks);
$userId = (int) $userId;
$state = (int) $state;
// If there are no primary keys set check to see if the instance key is set.
if (empty($pks))
{
if ($this->$k)
{
$pks = array($this->$k);
}
// Nothing to set publishing state on, return false.
else
{
$this->setError(JText::_('JLIB_DATABASE_ERROR_NO_ROWS_SELECTED'));
return false;
}
}
// Build the WHERE clause for the primary keys.
$where = $k . '=' . implode(' OR ' . $k . '=', $pks);
// Determine if there is checkin support for the table.
if (!property_exists($this, 'checked_out') || !property_exists($this, 'checked_out_time'))
{
$checkin = '';
}
else
{
$checkin = ' AND (checked_out = 0 OR checked_out = ' . (int) $userId . ')';
}
// Update the publishing state for rows with the given primary keys.
$query = $this->_db->getQuery(true)
->update($this->_db->quoteName($this->_tbl))
->set($this->_db->quoteName('state') . ' = ' . (int) $state)
->where($where);
$this->_db->setQuery($query . $checkin);
try
{
$this->_db->execute();
}
catch (RuntimeException $e)
{
$this->setError($e->getMessage());
return false;
}
// If checkin is supported and all rows were adjusted, check them in.
if ($checkin && count($pks) === $this->_db->getAffectedRows())
{
// Checkin the rows.
foreach ($pks as $pk)
{
$this->checkIn($pk);
}
}
// If the JTable instance value is in the list of primary keys that were set, set the instance.
if (in_array($this->$k, $pks))
{
$this->state = $state;
}
$this->setError('');
return true;
}
/**
* Method to store a row in the database from the JTable instance properties.
* If a primary key value is set the row with that primary key value will be
* updated with the instance property values. If no primary key value is set
* a new row will be inserted into the database with the properties from the
* JTable instance.
*
* @param boolean $updateNulls True to update fields even if they are null. [optional]
*
* @return boolean True on success.
*
* @since 2.5
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate()->toSql();
$userId = JFactory::getUser()->id;
$this->modified = $date;
if ($this->filter_id)
{
// Existing item
$this->modified_by = $userId;
}
else
{
// New item. A filter's created field can be set by the user,
// so we don't touch it if it is set.
if (!(int) $this->created)
{
$this->created = $date;
}
if (empty($this->created_by))
{
$this->created_by = $userId;
}
}
if (is_array($this->data))
{
$this->map_count = count($this->data);
$this->data = implode(',', $this->data);
}
else
{
$this->map_count = 0;
$this->data = implode(',', array());
}
// Verify that the alias is unique
$table = JTable::getInstance('Filter', 'FinderTable', array('dbo' => $this->_db));
if ($table->load(array('alias' => $this->alias)) && ($table->filter_id != $this->filter_id || $this->filter_id == 0))
{
$this->setError(JText::_('JLIB_DATABASE_ERROR_ARTICLE_UNIQUE_ALIAS'));
return false;
}
return parent::store($updateNulls);
}
}
PK �!]�6�
index.htmlnu &1i� <!DOCTYPE html><title></title>PK �!]�6� �
styles.phpnu &1i� <?php
/**
* @name Slideshow CK
* @package com_slideshowck
* @copyright Copyright (C) 2019. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
// No direct access
defined('_JEXEC') or die;
class SlideshowckTableStyles extends \Joomla\CMS\Table\Table {
/**
* Constructor
*
* @param \Joomla\Data\DataObjectbase A database connector object
*/
public function __construct(&$db) {
$this->setColumnAlias('published', 'state');
parent::__construct('#__slideshowck_styles', 'id', $db);
}
}
PK ="]�U3�� � profiles.phpnu &1i� <?php
/**
* @package JCE
* @subpackage Admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
\defined('_JEXEC') or die;
use Joomla\CMS\Table\Table;
require_once JPATH_ADMINISTRATOR . '/components/com_jce/helpers/encrypt.php';
class JceTableProfiles extends Table
{
/**
* Indicates that columns fully support the NULL value in the database
*
* @var boolean
* @since 4.0.0
*/
protected $_supportNullValue = true;
public function __construct(&$db)
{
parent::__construct('#__wf_profiles', 'id', $db);
}
public function load($id = null, $reset = true)
{
$return = parent::load($id, $reset);
if ($return !== false) {
// decrypt params
if (!empty($this->params)) {
$this->params = JceEncryptHelper::decrypt($this->params);
}
}
return $return;
}
/**
* Overloaded check function
*
* @return boolean True on success, false on failure
*
* @see Table::check()
* @since 2.9.18
*/
public function check()
{
try
{
parent::check();
} catch (Exception $e) {
$this->setError($e->getMessage());
return false;
}
/**
* Ensure any new items have compulsory fields set
*/
if (!$this->id) {
if (!isset($this->device)) {
$this->device = 'desktop,tablet,phone';
}
if (!isset($this->area)) {
$this->area = '0';
}
// Params can be an empty json string for new tables
if (empty($this->params)) {
$this->params = '{}';
}
}
return true;
}
}
PK D"]�'�<
sitemap.phpnu &1i� <?php
/**
* @version $Id$
* @copyright Copyright (C) 2007 - 2009 Joomla! Vargas. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Guillermo Vargas (guille@vargas.co.cr)
*/
// no direct access
defined('_JEXEC') or die;
/**
* @package Xmap
* @subpackage com_xmap
* @since 2.0
*/
class XmapTableSitemap extends JTable
{
/**
* @var int Primary key
*/
var $id = null;
/**
* @var string
*/
var $title = null;
/**
* @var string
*/
var $alias = null;
/**
* @var string
*/
var $introtext = null;
/**
* @var string
*/
var $metakey = null;
/**
* @var string
*/
var $attribs = null;
/**
* @var string
*/
var $selections = null;
/**
* @var string
*/
var $created = null;
/**
* @var string
*/
var $metadesc = null;
/**
* @var string
*/
var $excluded_items = null;
/**
* @var int
*/
var $is_default = 0;
/**
* @var int
*/
var $state = 0;
/**
* @var int
*/
var $access = 0;
/**
* @var int
*/
var $count_xml = 0;
/**
* @var int
*/
var $count_html = 0;
/**
* @var int
*/
var $views_xml = 0;
/**
* @var int
*/
var $views_html = 0;
/**
* @var int
*/
var $lastvisit_xml = 0;
/**
* @var int
*/
var $lastvisit_html = 0;
/**
* @param JDatabase A database connector object
*/
function __construct(&$db)
{
parent::__construct('#__xmap_sitemap', 'id', $db);
}
/**
* Overloaded bind function
*
* @access public
* @param array $hash named array
* @return null|string null is operation was satisfactory, otherwise returns an error
* @see JTable:bind
* @since 2.0
*/
function bind($array, $ignore = '')
{
if (isset($array['attribs']) && is_array($array['attribs'])) {
$registry = new JRegistry();
$registry->loadArray($array['attribs']);
$array['attribs'] = $registry->toString();
}
if (isset($array['selections']) && is_array($array['selections'])) {
$selections = array();
foreach ($array['selections'] as $i => $menu) {
$selections[$menu] = array(
'priority' => $array['selections_priority'][$i],
'changefreq' => $array['selections_changefreq'][$i],
'ordering' => $i
);
}
$registry = new JRegistry();
$registry->loadArray($selections);
$array['selections'] = $registry->toString();
}
if (isset($array['metadata']) && is_array($array['metadata'])) {
$registry = new JRegistry();
$registry->loadArray($array['metadata']);
$array['metadata'] = $registry->toString();
}
return parent::bind($array, $ignore);
}
/**
* Overloaded check function
*
* @access public
* @return boolean
* @see JTable::check
* @since 2.0
*/
function check()
{
if (empty($this->title)) {
$this->setError(JText::_('Sitemap must have a title'));
return false;
}
if (empty($this->alias)) {
$this->alias = $this->title;
}
$this->alias = JApplication::stringURLSafe($this->alias);
if (trim(str_replace('-', '', $this->alias)) == '') {
$datenow = &JFactory::getDate();
$this->alias = $datenow->format("Y-m-d-H-i-s");
}
return true;
}
/**
* Overriden JTable::store to set modified data and user id.
*
* @param boolean True to update fields even if they are null.
* @return boolean True on success.
* @since 2.0
*/
public function store($updateNulls = false)
{
$date = JFactory::getDate();
if (!$this->id) {
$this->created = $date->toSql();
}
return parent::store($updateNulls);
}
/**
* Method to set the publishing state for a row or list of rows in the database
* table.
*
* @param mixed An optional array of primary key values to update. If not
* set the instance property value is used.
* @param integer The publishing state. eg. [0 = unpublished, 1 = published]
* @param integer The user id of the user performing the operation.
* @return boolean True on success.
* @since 2.0
*/
public function publish($pks = null, $state = 1, $userId = 0)
{
// Initialize variables.
$k = $this->_tbl_key;
// Sanitize input.
JArrayHelper::toInteger($pks);
$userId = (int) $userId;
$state = (int) $state;
// If there are no primary keys set check to see if the instance key is set.
if (empty($pks)) {
if ($this->$k) {
$pks = array($this->$k);
}
// Nothing to set publishing state on, return false.
else {
$this->setError(JText::_('No_Rows_Selected'));
return false;
}
}
// Build the WHERE clause for the primary keys.
$where = $k . '=' . implode(' OR ' . $k . '=', $pks);
// Update the publishing state for rows with the given primary keys.
$query = $this->_db->getQuery(true)
->update($this->_db->quoteName('#__xmap_sitemap'))
->set($this->_db->quoteName('state').' = '. (int) $state)
->where($where);
$this->_db->setQuery($query);
$this->_db->query();
// Check for a database error.
if ($this->_db->getErrorNum()) {
$this->setError($this->_db->getErrorMsg());
return false;
}
// If the JTable instance value is in the list of primary keys that were set, set the instance.
if (in_array($this->$k, $pks)) {
$this->state = $state;
}
$this->setError('');
return true;
}
}
PK %�!]]u��� � group.phpnu &1i� PK %�!]�o3k k � field.phpnu &1i� PK u�!]ߕJ�~ ~ �* style.phpnu &1i� PK @�!]�T�- - X7 menu.phpnu &1i� PK B�!]Z�y= = �; request.phpnu &1i� PK B�!]<X��� � 5C consent.phpnu &1i� PK �!]�}ZR R mI link.phpnu &1i� PK �!]꫞�� � �K map.phpnu &1i� PK �!]y�I.� �
�U filter.phpnu &1i� PK �!]�6�
p index.htmlnu &1i� PK �!]�6� �
hp styles.phpnu &1i� PK ="]�U3�� � $s profiles.phpnu &1i� PK D"]�'�<
+{ sitemap.phpnu &1i� PK
� s�