You've already forked joomla_test
first commit
This commit is contained in:
56
administrator/components/com_k2/tables/k2user.php
Normal file
56
administrator/components/com_k2/tables/k2user.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @version $Id: k2user.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
|
||||
* @package K2
|
||||
* @author JoomlaWorks http://www.joomlaworks.net
|
||||
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
|
||||
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
class TableK2User extends K2Table
|
||||
{
|
||||
|
||||
var $id = null;
|
||||
var $userID = null;
|
||||
var $userName = null;
|
||||
var $gender = null;
|
||||
var $description = null;
|
||||
var $image = null;
|
||||
var $url = null;
|
||||
var $group = null;
|
||||
var $plugins = null;
|
||||
var $ip = null;
|
||||
var $hostname = null;
|
||||
var $notes = null;
|
||||
|
||||
function __construct(&$db)
|
||||
{
|
||||
|
||||
parent::__construct('#__k2_users', 'id', $db);
|
||||
}
|
||||
|
||||
function check()
|
||||
{
|
||||
|
||||
if (JString::trim($this->url) != '' && substr($this->url, 0, 7) != 'http://')
|
||||
$this->url = 'http://'.$this->url;
|
||||
return true;
|
||||
}
|
||||
|
||||
function bind($array, $ignore = '')
|
||||
{
|
||||
|
||||
if (key_exists('plugins', $array) && is_array($array['plugins']))
|
||||
{
|
||||
$registry = new JRegistry();
|
||||
$registry->loadArray($array['plugins']);
|
||||
$array['plugins'] = $registry->toString();
|
||||
}
|
||||
|
||||
return parent::bind($array, $ignore);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user