PHP Класс Pql, googleads-php-lib

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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