本文整理汇总了PHP中KunenaTable类的典型用法代码示例。如果您正苦于以下问题:PHP KunenaTable类的具体用法?PHP KunenaTable怎么用?PHP KunenaTable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了KunenaTable类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
public function load($oid = null, $reset = true)
{
if (!$oid) {
return false;
}
return parent::load($oid, $reset);
}
示例2: load
function load($oid = null)
{
if (!$oid) {
return false;
}
return parent::load($oid);
}
示例3: __construct
public function __construct($db)
{
parent::__construct('#__kunena_user_read', array('user_id', 'topic_id'), $db);
}
示例4: __construct
public function __construct($db)
{
parent::__construct('#__kunena_polls', 'id', $db);
}
示例5: store
function store() {
$k = $this->_tbl_key;
$update = $this->_exists;
$message = $this->message;
unset($this->message);
if (!parent::store())
return false;
$this->message = $message;
if ($update) {
$query = "UPDATE #__kunena_messages_text SET message={$this->_db->quote($this->message)} WHERE mesid = {$this->$k}";
} else {
$query = "INSERT INTO #__kunena_messages_text (mesid, message) VALUES ({$this->$k}, {$this->_db->quote($this->message)})";
}
$this->_db->setQuery($query);
$this->_db->query();
// Check for an error message.
if ($this->_db->getErrorNum()) {
$this->setError($this->_db->getErrorMsg());
return false;
}
return true;
}
示例6:
function __construct($db) {
parent::__construct ( '#__kunena_keywords', 'id', $db );
}
示例7: store
public function store($updateNulls = false)
{
$ret = parent::store($updateNulls);
return $ret;
}
示例8: __construct
/**
* @param string $db
*/
public function __construct($db)
{
parent::__construct('#__kunena_announcement', 'id', $db);
}
示例9: store
function store($updateNulls = false)
{
$ret = parent::store($updateNulls);
if ($ret) {
// we must reset session, when forum record was changed
$this->_db->setQuery("UPDATE #__kunena_sessions SET allowed='na'");
$this->_db->query();
KunenaError::checkDatabaseError();
}
return $ret;
}
示例10: __construct
public function __construct($db) {
parent::__construct ( '#__kunena_attachments', 'id', $db );
}
示例11: bind
public function bind($data, $ignore=array()) {
parent::bind($data, $ignore);
$fields = array('name', 'username', 'email', 'blocked', 'registerDate', 'lastvisitDate');
foreach ($fields as $field) {
if (isset($data[$field]) && !in_array($field, $ignore)) $this->$field = $data[$field];
}
}
示例12: bind
public function bind($data, $ignore = array())
{
parent::bind($data, $ignore);
$fields = array('name', 'username', 'blocked');
foreach ($fields as $field) {
if (isset($data[$field]) && !in_array($field, $ignore)) {
$this->{$field} = $data[$field];
}
}
}