예제 #1
0
 public function getTokensByProvider($providerHandle)
 {
     $conditions = 'providerHandle=:providerHandle';
     $params = array(':providerHandle' => $providerHandle);
     $records = Oauth_TokenRecord::model()->findAll($conditions, $params);
     return Oauth_TokenModel::populateModels($records);
 }
예제 #2
0
 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);
 }