public function addScope($scope_or_scopes)
  {
    if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) {
      $this->requestedScopes[] = $scope_or_scopes;
    } else if (is_array($scope_or_scopes)) {
      foreach ($scope_or_scopes as $scope) {
        $this->addScope($scope);
      }
    }
  }
public function addScope($scope_or_scopes)
  {
    if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) {
      $this->requestedScopes[] = $scope_or_scopes;
    } else if (is_array($scope_or_scopes)) {
      foreach ($scope_or_scopes as $scope) {
        $this->addScope($scope);
      }
    }
  }
public function addScope ( $ scope_or_scopes ) { if ( is_string ( $ scope_or_scopes ) && ! in_array ( $ scope_or_scopes , $ this -> requestedScopes ) ) { $ this -> requestedScopes [ ] = $ scope_or_scopes ; } else if ( is_array ( $ scope_or_scopes ) ) { foreach ( $ scope_or_scopes as $ scope ) { $ this -> addScope ( $ scope ) ; } } }
This functions adds a scope to be requested as part of the OAuth2.0 flow.
Will append any scopes not previously requested to the scope parameter.
A single string will be treated as a scope to request. An array of strings
will each be appended.
@param $scope_or_scopes string|array e.g. "profile"
This functions adds a scope to be requested as part of the OAuth2 . 0 flow . Will append any scopes not previously requested to the scope parameter . A single string will be treated as a scope to request . An array of strings will each be appended .