Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 47... Línea 47...
47
     *
47
     *
48
     * @param string $serverurl a Moodle URL
48
     * @param string $serverurl a Moodle URL
49
     * @param string $token the token used to do the web service call
49
     * @param string $token the token used to do the web service call
50
     * @param array $options PHP SOAP client options - see php.net
50
     * @param array $options PHP SOAP client options - see php.net
51
     */
51
     */
52
    public function __construct($serverurl, $token = null, array $options = null) {
52
    public function __construct($serverurl, $token = null, ?array $options = null) {
53
        $this->serverurl = new moodle_url($serverurl);
53
        $this->serverurl = new moodle_url($serverurl);
54
        $this->token = $token ?: $this->serverurl->get_param('wstoken');
54
        $this->token = $token ?: $this->serverurl->get_param('wstoken');
55
        $this->options = $options ?: array();
55
        $this->options = $options ?: array();
56
    }
56
    }