private function get_system_ocs_client() {
        if ($this->systemocsclient === null) {
            try {
                $systemoauth = $this->get_system_oauth_client();
                if (!$systemoauth) {
                    return null;
                }
                $this->systemocsclient = new ocs_client($systemoauth);
            } catch (\moodle_exception $e) {
                $this->systemocsclient = null;
            }
        }
        return $this->systemocsclient;
    }
private function get_system_ocs_client() {
        if ($this->systemocsclient === null) {
            try {
                $systemoauth = $this->get_system_oauth_client();
                if (!$systemoauth) {
                    return null;
                }
                $this->systemocsclient = new ocs_client($systemoauth);
            } catch (\moodle_exception $e) {
                $this->systemocsclient = null;
            }
        }
        return $this->systemocsclient;
    }
private function get_system_ocs_client ( ) { if ( $ this -> systemocsclient === null ) { try { $ systemoauth = $ this -> get_system_oauth_client ( ) ; if ( ! $ systemoauth ) { return null ; } $ this -> systemocsclient = new ocs_client ( $ systemoauth ) ; } catch ( \ moodle_exception $ e ) { $ this -> systemocsclient = null ; } } return $ this -> systemocsclient ; }
Get or initialise an ocs client for the system account.

@return null|ocs_client Null if initialisation was unsuccessful, otherwise an initialised client.
Get or initialise an ocs client for the system account .