39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
/*
|
|
* @package Joomla.Framework
|
|
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*
|
|
* @component Phoca Component
|
|
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
|
|
*/
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
use Joomla\CMS\Table\Table;
|
|
use Joomla\Registry\Registry;
|
|
jimport('joomla.filter.input');
|
|
|
|
class TablePhocaGalleryFbUsers extends Table
|
|
{
|
|
function __construct(& $db) {
|
|
parent::__construct('#__phocagallery_fb_users', 'id', $db);
|
|
}
|
|
|
|
public function bind($array, $ignore = '')
|
|
{
|
|
if (isset($array['params']) && is_array($array['params'])) {
|
|
$registry = new Registry();
|
|
$registry->loadArray($array['params']);
|
|
$array['params'] = (string)$registry;
|
|
}
|
|
|
|
if (isset($array['comments']) && is_array($array['comments'])) {
|
|
$registry = new Registry();
|
|
$registry->loadArray($array['comments']);
|
|
$array['comments'] = (string)$registry;
|
|
}
|
|
return parent::bind($array, $ignore);
|
|
}
|
|
}
|
|
?>
|