Commit 1d15094e authored by Bas de Nooijer's avatar Bas de Nooijer

- improved phpdoc

parent 81338879
...@@ -76,7 +76,7 @@ class Solarium_Client extends Solarium_Configurable ...@@ -76,7 +76,7 @@ class Solarium_Client extends Solarium_Configurable
* *
* The adapter is lazy-loading, it will be instantiated on first use by * The adapter is lazy-loading, it will be instantiated on first use by
* {@link getAdapter()} based on the 'adapter' entry in {@link $_options}. * {@link getAdapter()} based on the 'adapter' entry in {@link $_options}.
* This options can be set using {@link setAdapter()} * This option can be set using {@link setAdapter()}
* *
* @var Solarium_Client_Adapter * @var Solarium_Client_Adapter
*/ */
...@@ -208,7 +208,8 @@ class Solarium_Client extends Solarium_Configurable ...@@ -208,7 +208,8 @@ class Solarium_Client extends Solarium_Configurable
/** /**
* Set the adapter * Set the adapter
* *
* The adapter has to be a class that extends Solarium_Client_Adapter. * The adapter has to be a class that extends
* {@link Solarium_Client_Adapter}.
* *
* If a string is passed it is assumed to be the classname and it will be * If a string is passed it is assumed to be the classname and it will be
* instantiated on first use. This requires the availability of the class * instantiated on first use. This requires the availability of the class
...@@ -277,7 +278,17 @@ class Solarium_Client extends Solarium_Configurable ...@@ -277,7 +278,17 @@ class Solarium_Client extends Solarium_Configurable
/** /**
* Execute a ping query * Execute a ping query
* *
* This is a convenience method that forwards the query to the adapter and * Example usage:
* <code>
* $client = new Solarium_Client;
* $query = new Solarium_Query_Ping;
* $result = $client->ping($query);
* </code>
*
* @see Solarium_Query_Ping
* @see Solarium_Result_Ping
*
* @internal This is a convenience method that forwards the query to the adapter and
* returns the adapter result, thus allowing for an easy to use and clean * returns the adapter result, thus allowing for an easy to use and clean
* API. * API.
* *
...@@ -292,12 +303,23 @@ class Solarium_Client extends Solarium_Configurable ...@@ -292,12 +303,23 @@ class Solarium_Client extends Solarium_Configurable
/** /**
* Execute an update query * Execute an update query
* *
* This is a convenience method that forwards the query to the adapter and * Example usage:
* <code>
* $client = new Solarium_Client;
* $update = new Solarium_Query_Update;
* $update->addOptimize();
* $result = $client->ping($update);
* </code>
*
* @see Solarium_Query_Update
* @see Solarium_Result_Update
*
* @internal This is a convenience method that forwards the query to the adapter and
* returns the adapter result, thus allowing for an easy to use and clean * returns the adapter result, thus allowing for an easy to use and clean
* API. * API.
* *
* @param Solarium_Query_Update $query * @param Solarium_Query_Update $query
* @return Solarium_Result_Select * @return Solarium_Result_Update
*/ */
public function update($query) public function update($query)
{ {
...@@ -307,7 +329,17 @@ class Solarium_Client extends Solarium_Configurable ...@@ -307,7 +329,17 @@ class Solarium_Client extends Solarium_Configurable
/** /**
* Execute a select query * Execute a select query
* *
* This is a convenience method that forwards the query to the adapter and * Example usage:
* <code>
* $client = new Solarium_Client;
* $query = new Solarium_Query_Select;
* $result = $client->ping($query);
* </code>
*
* @see Solarium_Query_Select
* @see Solarium_Result_Select
*
* @internal This is a convenience method that forwards the query to the adapter and
* returns the adapter result, thus allowing for an easy to use and clean * returns the adapter result, thus allowing for an easy to use and clean
* API. * API.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment