/** * @method void validateHeader() */ protected function validateHeader() { // do the standard oauth tricks if ($this->method === 'DELETE') { parent::validateHeader(); return; } $valFunction = 'validate_' . $this->mode; if (method_exists($this, $valFunc)) { call_user_func(array($this, $valFunc)); } else { $this->log("validation is not allowed for mode " . $this->mode); $this->status = RESTling::BAD_HEADER; } // this is a pre check // if we fail at this stage the client needs to start over again if ($this->session->getOAuthState() !== OAUTH_OK) { $this->status = RESTling::BAD_HEADER; } }
protected function initializeRun() { parent::initializeRun(); $this->lrs = $this->VLE->getLRS(); }
public static function apiDefinition($apis, $prefix, $link = "client", $name = "") { return parent::apiDefinition($apis, $prefix, $link, "powertla.identity.client"); }
public static function apiDefinition($apis, $prefix, $link = "qti", $name = "") { return parent::apiDefinition($apis, $prefix, $link, "powertla.content.imsqti"); }
public static function apiDefinition($apis, $prefix, $link = "course", $name = "") { return parent::apiDefinition($apis, $prefix, $link, "powertla.content.courselist"); }
public static function apiDefinition($apis, $prefix, $link = "file", $name = "") { return parent::apiDefinition($apis, $prefix, $link, "powertla.content.fileaccess"); }
protected function initializeRun() { parent::initializeRun(); $this->provider = $this->VLE->getIdentityProvider(); }