import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @copyright Copyright (C) 2005-2010 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @license http://creativecommons.org/licenses/BSD/ BSD License
|
||||
* @author Keyboard Monkey Ltd
|
||||
* @since CommunityID 0.9
|
||||
@ -16,9 +16,17 @@ class Model_FieldsValues extends Monkeys_Db_Table_Gateway
|
||||
protected $_primary = array('user_id', 'field_id');
|
||||
protected $_rowClass = 'Model_FieldsValue';
|
||||
|
||||
public function deleteForUser(Users_Model_User $user)
|
||||
public function getForUser(Users_Model_User $user)
|
||||
{
|
||||
$where = $this->getAdapter()->quoteInto('user_id=?', $user->id);
|
||||
$select = $this->select()
|
||||
->where('user_id=?', $user->id);
|
||||
|
||||
return $this->fetchAll($select);
|
||||
}
|
||||
|
||||
public function deleteForProfile(Users_Model_Profile $profile)
|
||||
{
|
||||
$where = $this->getAdapter()->quoteInto('profile_id=?', $profile->id);
|
||||
$this->delete($where);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user