Remove unnecessary field

This commit is contained in:
Duncan Sommerville 2015-10-19 17:00:03 -04:00
parent 12f6536e74
commit 3a791ef9b5
2 changed files with 7 additions and 12 deletions

View File

@ -10,13 +10,10 @@ class SoundcloudController extends ThirdPartyController implements OAuth2Control
*/ */
protected $_service; protected $_service;
/**
* @var string Application_Model_Preference service request token accessor function name
*/
protected $_SERVICE_TOKEN_ACCESSOR = 'setSoundCloudRequestToken';
/** /**
* Set up SoundCloud access variables. * Set up SoundCloud access variables.
*
* @return void
*/ */
public function init() { public function init() {
parent::init(); parent::init();
@ -78,8 +75,7 @@ class SoundcloudController extends ThirdPartyController implements OAuth2Control
* @return void * @return void
*/ */
public function deauthorizeAction() { public function deauthorizeAction() {
$function = $this->_SERVICE_TOKEN_ACCESSOR; Application_Model_Preference::setSoundCloudRequestToken("");
Application_Model_Preference::$function("");
header('Location: ' . $this->_baseUrl . 'preference'); // Redirect back to the preference page header('Location: ' . $this->_baseUrl . 'preference'); // Redirect back to the preference page
} }
@ -97,6 +93,8 @@ class SoundcloudController extends ThirdPartyController implements OAuth2Control
/** /**
* Fetch the permalink to a file on SoundCloud and redirect to it. * Fetch the permalink to a file on SoundCloud and redirect to it.
*
* @return void
*/ */
public function viewOnSoundCloudAction() { public function viewOnSoundCloudAction() {
$request = $this->getRequest(); $request = $this->getRequest();

View File

@ -15,13 +15,10 @@ abstract class ThirdPartyController extends Zend_Controller_Action {
*/ */
protected $_service; protected $_service;
/**
* @var string Application_Model_Preference service request token accessor function name
*/
protected $_SERVICE_TOKEN_ACCESSOR;
/** /**
* Disable controller rendering and initialize * Disable controller rendering and initialize
*
* @return void
*/ */
public function init() { public function init() {
$this->_baseUrl = Application_Common_HTTPHelper::getStationUrl(); $this->_baseUrl = Application_Common_HTTPHelper::getStationUrl();