kernel/private/oauth/classes/restclient.php
public function authorizeFor( $user = null )
    {
        $authorization = new ezpRestAuthorizedClient();
        $authorization->rest_client_id = $this->id;
        $authorization->user_id = $user->attribute( 'contentobject_id' );

        $session = ezcPersistentSessionInstance::get();
        $session->save( $authorization );
    }
public function authorizeFor( $user = null )
    {
        $authorization = new ezpRestAuthorizedClient();
        $authorization->rest_client_id = $this->id;
        $authorization->user_id = $user->attribute( 'contentobject_id' );

        $session = ezcPersistentSessionInstance::get();
        $session->save( $authorization );
    }
public function authorizeFor ( $ user = null ) { $ authorization = new ezpRestAuthorizedClient ( ) ; $ authorization -> rest_client_id = $ this -> id ; $ authorization -> user_id = $ user -> attribute ( 'contentobject_id' ) ; $ session = ezcPersistentSessionInstance :: get ( ) ; $ session -> save ( $ authorization ) ; }
Authorizes this application for a user
@param eZUser $user
@return void
Authorizes this application for a user