![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Default query coder implementation. More...
Public Member Functions | |
__construct ($path=null, AfsCoderInterface $feed_coder=null, AfsCoderInterface $filter_coder=null, AfsCoderInterface $sort_coder=null) | |
Construct new instance. | |
generate_parameters (AfsQuery $query) | |
Generate URL parameters from AfsQuery. | |
generate_link (AfsQuery $query) | |
Convenient method to build link. | |
build_query (array $params) | |
Generate query from URL parameters. |
Default query coder implementation.
__construct | ( | $path = null , |
|
AfsCoderInterface | $feed_coder = null , |
||
AfsCoderInterface | $filter_coder = null , |
||
AfsCoderInterface | $sort_coder = null |
||
) |
Construct new instance.
$path | [in] base path used to generate appropriate link (see generate_link method). If this parameter is not provided, value of $_SERVER['PHP_SELF'] is used as default value. |
$feed_coder | [in] (optional) feed coder. If not set, default implementation is used (see AfsFeedCoder). |
$filter_coder | [in] (optional) filter coder. If not set, default implementation is used (see AfsFilterCoder). |
$sort_coder | [in] (optional) sort parameters coder. If not set, default implementation is used (see AfsSortCoder). |
build_query | ( | array | $params | ) |
Generate query from URL parameters.
$params | [in] array of parameters. Usually set to $_GET. |
Implements AfsQueryCoderInterface.
generate_link | ( | AfsQuery | $query | ) |
Convenient method to build link.
Combine path parameter to result of generate_parameters call.
$query | [in] AfsQuery used to generate appropriate link. |
Implements AfsQueryCoderInterface.
generate_parameters | ( | AfsQuery | $query | ) |
Generate URL parameters from AfsQuery.
$query | [in] query to transform to URL parameters. |
Implements AfsQueryCoderInterface.