| 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/aix/administrator/components/com_itemrating/tables/ |
Upload File : |
<?php
/**
* @version 2.1.6
* @package com_itemrating
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Joomunited <contact@joomunited.com> - www.joomunited.com
*/
// No direct access
defined('_JEXEC') or die;
/**
* item Table class
*/
class ItemratingTableReport extends JTable {
/**
* Constructor
*
* @param JDatabase A database connector object
*/
public function __construct(&$db) {
parent::__construct('#__itemrating_context', 'id', $db);
$this->setColumnAlias('published', 'state');
}
/**
* Overloaded bind function to pre-process the params.
*
* @param array Named array
* @return null|string null is operation was satisfactory, otherwise returns an error
* @see JTable:bind
* @since 1.5
*/
public function bind($array, $ignore = '') {
return parent::bind($array, $ignore);
}
/**
* Define a namespaced asset name for inclusion in the #__assets table
* @return string The asset name
*
* @see JTable::_getAssetName
*/
protected function _getAssetName() {
$k = $this->_tbl_key;
return 'com_itemrating.item.' . (int) $this->$k;
}
/**
* Returns the parent asset's id. If you have a tree structure, retrieve the parent's id using the external key field
*
* @see JTable::_getAssetParentId
*/
protected function _getAssetParentId(JTable $table = null, $id = null) {
// We will retrieve the parent-asset from the Asset-table
$assetParent = JTable::getInstance('Asset');
// Default: if no asset-parent can be found we take the global asset
$assetParentId = $assetParent->getRootId();
// The item has the component as asset-parent
$assetParent->loadByName('com_itemrating');
// Return the found asset-parent-id
if ($assetParent->id) {
$assetParentId = $assetParent->id;
}
return $assetParentId;
}
}