示例#1
0
 /**
  * @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;
     }
 }
示例#2
0
 protected function initializeRun()
 {
     parent::initializeRun();
     $this->lrs = $this->VLE->getLRS();
 }
示例#3
0
 public static function apiDefinition($apis, $prefix, $link = "client", $name = "")
 {
     return parent::apiDefinition($apis, $prefix, $link, "powertla.identity.client");
 }
示例#4
0
 public static function apiDefinition($apis, $prefix, $link = "qti", $name = "")
 {
     return parent::apiDefinition($apis, $prefix, $link, "powertla.content.imsqti");
 }
示例#5
0
 public static function apiDefinition($apis, $prefix, $link = "course", $name = "")
 {
     return parent::apiDefinition($apis, $prefix, $link, "powertla.content.courselist");
 }
示例#6
0
 public static function apiDefinition($apis, $prefix, $link = "file", $name = "")
 {
     return parent::apiDefinition($apis, $prefix, $link, "powertla.content.fileaccess");
 }
示例#7
0
 protected function initializeRun()
 {
     parent::initializeRun();
     $this->provider = $this->VLE->getIdentityProvider();
 }