Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
8b5f94fa9f
10 changed files with 87 additions and 21 deletions
|
@ -231,6 +231,25 @@ class Application_Model_User
|
|||
$this->_userInstance->delete();
|
||||
}
|
||||
}
|
||||
public function getOwnedFiles()
|
||||
{
|
||||
$user = $this->_userInstance;
|
||||
// do we need a find call at the end here?
|
||||
return $user->getCcFilessRelatedByDbOwnerId();
|
||||
}
|
||||
|
||||
public function donateFilesTo($user)
|
||||
{
|
||||
$my_files = $this->getOwnedFiles();
|
||||
foreach ($my_files as $file) {
|
||||
$file->reassignTo($user);
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAllFiles()
|
||||
{
|
||||
$my_files = $this->getOwnedFiles();
|
||||
}
|
||||
|
||||
private function createUser()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue