예제 #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();
 }