Main Collection Class Name Changes
For consistency with OOP CamelCase naming conventions, the connection class API methods have been renamed. If you are using the API in any custom code it's best to update your called method names accordingly. The old names are still supported but are depreciated.
The old-to-new name mappings can best be represented in the following class that was added for legacy support of the old names:
/**
* Legacy support for old class and method naming conventions.
*
* @Deprecated
*/
class crowd_rest_client extends CrowdRestClient {
protected $request_method;
protected $request_data;
public function validate_session($user_token, $ip = NULL) {
return $this->validateSession($user_token, $ip);
}
public function crowd_is_logged_in($user_token) {
return $this->validateSession($user_token);
}
public function user_get($user_token) {
return $this->getUserFromToken($user_token);
}
public function list_groups() {
return $this->getAllGroups();
}
public function list_user_groups($name) {
return $this->getUserGroups($name);
}
}
So a call to:
$my_crowd_connection_object->validate_session($user_token, $ip);
would simply become:
$my_crowd_connection_object->validateSession($user_token, $ip);.
Note that the connection class name itself has also changed from crowd_rest_client to CrowdRestClient, so a call like:
$my_crowd_connection_object = new crowd_rest_client();
Would simple become:
$my_crowd_connection_object = new CrowdRestClient();
Or better yet, use the global factory method to avoid hard-coding the class name repeatedly:
$my_crowd_connection_object = crowd_client_connect();
Addition of Crowd Extended Rest Methods
All the logic and methods from the Crowd Extended REST Methods module have been moved into the official Crowd SSO project. Please note however that the method names have changed as part of this move. If you were using any methods from that module within custom code, you will need to update the called names accordingly before disabling it. See the interface definition from a complete listing of all the methods that are currently available now natively in the main Crowd SSO project.