PHP 클래스 Pql, googleads-php-lib

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

공개 메소드들

메소드 설명
CombineResultSets ( ResultSet $first, ResultSet $second ) Combines the first and second result sets, if and only if, the columns of both result sets match.
CreateValue ( mixed $value ) : Value Creates a {@link Value} from the value i.e., a {@link TextValue} for a value of type {@code string}, {@link BooleanValue} for type {@code bool}, {@link NumberValue} for type {@code float}, or {@code int}, {@link DateTimeValue} for type {@link DfpDateTime}, {@link DateValue} for type {@link Date}, and {@link SetValue} for type {@code array}. If the value is a {@code Value}, the value is returned. If the value is {@code null}, an empty {@link TextValue} is returned.
GetColumnLabels ( ResultSet $resultSet ) : array Gets the column labels for the result set.
GetRowStringValues ( Row $row ) : array Gets the values in a row of the result set in the form of a string list.
ToString ( Value $value ) : string Creates a String from the Value.

비공개 메소드들

메소드 설명
__construct ( ) {@link Pql} is meant to be used statically.

메소드 상세

CombineResultSets() 공개 정적인 메소드

Combines the first and second result sets, if and only if, the columns of both result sets match.
public static CombineResultSets ( ResultSet $first, ResultSet $second )
$first ResultSet
$second ResultSet

CreateValue() 공개 정적인 메소드

Creates a {@link Value} from the value i.e., a {@link TextValue} for a value of type {@code string}, {@link BooleanValue} for type {@code bool}, {@link NumberValue} for type {@code float}, or {@code int}, {@link DateTimeValue} for type {@link DfpDateTime}, {@link DateValue} for type {@link Date}, and {@link SetValue} for type {@code array}. If the value is a {@code Value}, the value is returned. If the value is {@code null}, an empty {@link TextValue} is returned.
public static CreateValue ( mixed $value ) : Value
$value mixed the value to convert
리턴 Value the constructed value of the appropriate type

GetColumnLabels() 공개 정적인 메소드

Gets the column labels for the result set.
public static GetColumnLabels ( ResultSet $resultSet ) : array
$resultSet ResultSet the result set to get the column labels for
리턴 array the string list of column labels

GetRowStringValues() 공개 정적인 메소드

Gets the values in a row of the result set in the form of a string list.
public static GetRowStringValues ( Row $row ) : array
$row Row the row to get the values for
리턴 array the string list of row labels

ToString() 공개 정적인 메소드

Creates a String from the Value.
public static ToString ( Value $value ) : string
$value Value the value to convert
리턴 string the string representation of the value