CommunityID/modules/default/models/FieldsValues.php

25 lines
647 B
PHP
Raw Normal View History

2019-07-17 20:08:50 +00:00
<?php
/*
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
* @license http://creativecommons.org/licenses/BSD/ BSD License
* @author Keyboard Monkey Ltd
* @since CommunityID 0.9
* @package CommunityID
* @packager Keyboard Monkeys
*/
2019-07-17 20:16:19 +00:00
class Model_FieldsValues extends Monkeys_Db_Table_Gateway
2019-07-17 20:08:50 +00:00
{
protected $_name = 'fields_values';
protected $_primary = array('user_id', 'field_id');
2019-07-17 20:16:19 +00:00
protected $_rowClass = 'Model_FieldsValue';
2019-07-17 20:08:50 +00:00
2019-07-17 20:16:19 +00:00
public function deleteForUser(Users_Model_User $user)
2019-07-17 20:08:50 +00:00
{
$where = $this->getAdapter()->quoteInto('user_id=?', $user->id);
$this->delete($where);
}
}