getPreferredBackend()
getPreferredBackend() : array
Determines the backend to use.
This decision is based on the global 'SERVER_NAME' and 'HTTP_HOST' server variables and the contents of the 'preferred' either field in the backend's definition. The 'preferred' field may take a single value or an array of multiple values.
Throws
- \Sam_Exception
Returns
array —The backend entry.