public function getTokensByProvider($providerHandle) { $conditions = 'providerHandle=:providerHandle'; $params = array(':providerHandle' => $providerHandle); $records = Oauth_TokenRecord::model()->findAll($conditions, $params); return Oauth_TokenModel::populateModels($records); }
public function getSystemTokens() { Craft::log(__METHOD__, LogLevel::Info, true); $conditions = 'namespace is not null'; $params = array(); $records = Oauth_TokenRecord::model()->findAll($conditions, $params); return Oauth_TokenModel::populateModels($records); }