Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
1d15094e
Commit
1d15094e
authored
Feb 23, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- improved phpdoc
parent
81338879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
12 deletions
+44
-12
library/Solarium/Client.php
library/Solarium/Client.php
+44
-12
No files found.
library/Solarium/Client.php
View file @
1d15094e
...
...
@@ -76,7 +76,7 @@ class Solarium_Client extends Solarium_Configurable
*
* The adapter is lazy-loading, it will be instantiated on first use by
* {@link getAdapter()} based on the 'adapter' entry in {@link $_options}.
* This option
s
can be set using {@link setAdapter()}
* This option can be set using {@link setAdapter()}
*
* @var Solarium_Client_Adapter
*/
...
...
@@ -208,7 +208,8 @@ class Solarium_Client extends Solarium_Configurable
/**
* 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
* instantiated on first use. This requires the availability of the class
...
...
@@ -277,9 +278,19 @@ class Solarium_Client extends Solarium_Configurable
/**
* Execute a ping query
*
* 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
* API.
* 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
* API.
*
* @param Solarium_Query_Ping $query
* @return Solarium_Result_Ping
...
...
@@ -292,12 +303,23 @@ class Solarium_Client extends Solarium_Configurable
/**
* Execute an update query
*
* 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
* API.
* 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
* API.
*
* @param Solarium_Query_Update $query
* @return Solarium_Result_
Select
* @return Solarium_Result_
Update
*/
public
function
update
(
$query
)
{
...
...
@@ -307,9 +329,19 @@ class Solarium_Client extends Solarium_Configurable
/**
* Execute a select query
*
* 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
* API.
* 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
* API.
*
* @param Solarium_Query_Select $query
* @return Solarium_Result_Select
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment