PHP 클래스 UserService, googleads-php-lib

파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$classmap array Default class map for wsdl=>php
$endpoint string The endpoint of the service

공개 메소드들

메소드 설명
__construct ( string $wsdl, array $options, $user ) Constructor using wsdl location and options array
createUsers ( $users ) : the Creates new {@link User} objects.
getAllRoles ( ) : the Returns the {@link Role} objects that are defined for the users of the network.
getCurrentUser ( ) : the Returns the current {@link User}.
getUsersByStatement ( $filterStatement ) : the Gets a {@link UserPage} of {@link User} objects that satisfy the given {@link Statement#query}. The following fields are supported for filtering:
performUserAction ( $userAction, $filterStatement ) : the Performs actions on {@link User} objects that match the given {@link Statement#query}.
updateUsers ( $users ) : the Updates the specified {@link User} objects.

메소드 상세

__construct() 공개 메소드

Constructor using wsdl location and options array
public __construct ( string $wsdl, array $options, $user )
$wsdl string WSDL location for this service
$options array Options for the SoapClient

createUsers() 공개 메소드

Creates new {@link User} objects.
public createUsers ( $users ) : the
리턴 the created users with their IDs filled in

getAllRoles() 공개 메소드

Returns the {@link Role} objects that are defined for the users of the network.
public getAllRoles ( ) : the
리턴 the roles defined for the user's network

getCurrentUser() 공개 메소드

Returns the current {@link User}.
public getCurrentUser ( ) : the
리턴 the current user

getUsersByStatement() 공개 메소드

PQL Property Object Property
{@code email} {@link User#email}
{@code id} {@link User#id}
{@code name} {@link User#name}
{@code roleId} {@link User#roleId}
{@code rolename} {@link User#roleName}
{@code status} {@code ACTIVE} if {@link User#isActive} is true; {@code INACTIVE} otherwise
public getUsersByStatement ( $filterStatement ) : the
리턴 the users that match the given filter

performUserAction() 공개 메소드

Performs actions on {@link User} objects that match the given {@link Statement#query}.
public performUserAction ( $userAction, $filterStatement ) : the
리턴 the result of the action performed

updateUsers() 공개 메소드

Updates the specified {@link User} objects.
public updateUsers ( $users ) : the
리턴 the updated users

프로퍼티 상세

$classmap 공개적으로 정적으로 프로퍼티

Default class map for wsdl=>php
public static array $classmap
리턴 array

$endpoint 공개적으로 정적으로 프로퍼티

The endpoint of the service
public static string $endpoint
리턴 string