diff options
author | Zach Copley <zach@status.net> | 2010-02-02 08:48:52 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-02 08:48:52 +0000 |
commit | 2be00ce64221197f3c8ad1458eba2488c8836e5c (patch) | |
tree | b3fd0ee62c631f53b2c8670ec1f109283b2d6b34 /classes/Oauth_application.php | |
parent | 952b5806987e12a34e6fd75509b5d78815c1aa2d (diff) | |
parent | 5e90f744a6fb58c43f8f5332ef868ba38e82b3d1 (diff) |
Merge branch 'oauth-continued' into 0.9.x
Diffstat (limited to 'classes/Oauth_application.php')
-rw-r--r-- | classes/Oauth_application.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/classes/Oauth_application.php b/classes/Oauth_application.php index a6b539087..748b64220 100644 --- a/classes/Oauth_application.php +++ b/classes/Oauth_application.php @@ -137,4 +137,21 @@ class Oauth_application extends Memcached_DataObject } } + function delete() + { + $this->_deleteAppUsers(); + + $consumer = $this->getConsumer(); + $consumer->delete(); + + parent::delete(); + } + + function _deleteAppUsers() + { + $oauser = new Oauth_application_user(); + $oauser->application_id = $this->id; + $oauser->delete(); + } + } |