X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/lti1p3/src
home
/
cbholdings
/
pasukulu
/
lib
/
lti1p3
/
src
/
📁
..
📁
Helpers
📁
ImsStorage
📁
Interfaces
📄
JwksEndpoint.php
(1.52 KB)
📄
LtiAbstractService.php
(1.36 KB)
📄
LtiAssignmentsGradesService.php
(6.65 KB)
📄
LtiConstants.php
(7.56 KB)
📄
LtiCourseGroupsService.php
(1.99 KB)
📄
LtiDeepLink.php
(2.11 KB)
📄
LtiDeepLinkResource.php
(3.28 KB)
📄
LtiDeepLinkResourceIcon.php
(1.27 KB)
📄
LtiDeployment.php
(392 B)
📄
LtiException.php
(92 B)
📄
LtiGrade.php
(3.77 KB)
📄
LtiGradeSubmissionReview.php
(1.8 KB)
📄
LtiLineitem.php
(3.07 KB)
📄
LtiMessageLaunch.php
(17.73 KB)
📄
LtiNamesRolesProvisioningService.php
(708 B)
📄
LtiOidcLogin.php
(4.69 KB)
📄
LtiRegistration.php
(2.69 KB)
📄
LtiServiceConnector.php
(6.69 KB)
📁
MessageValidators
📄
OidcException.php
(93 B)
📄
Redirect.php
(2.46 KB)
📄
ServiceRequest.php
(4.14 KB)
Editing: LtiDeepLinkResource.php
<?php namespace Packback\Lti1p3; class LtiDeepLinkResource { private $type = 'ltiResourceLink'; private $title; private $text; private $url; private $line_item; private $icon; private $thumbnail; private $custom_params = []; private $target = 'iframe'; public static function new(): LtiDeepLinkResource { return new LtiDeepLinkResource(); } public function getType(): string { return $this->type; } public function setType(string $value): LtiDeepLinkResource { $this->type = $value; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $value): LtiDeepLinkResource { $this->title = $value; return $this; } public function getText(): ?string { return $this->text; } public function setText(?string $value): LtiDeepLinkResource { $this->text = $value; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(?string $value): LtiDeepLinkResource { $this->url = $value; return $this; } public function getLineItem(): ?LtiLineitem { return $this->line_item; } public function setLineItem(?LtiLineitem $value): LtiDeepLinkResource { $this->line_item = $value; return $this; } public function setIcon(?LtiDeepLinkResourceIcon $icon): LtiDeepLinkResource { $this->icon = $icon; return $this; } public function getIcon(): ?LtiDeepLinkResourceIcon { return $this->icon; } public function setThumbnail(?LtiDeepLinkResourceIcon $thumbnail): LtiDeepLinkResource { $this->thumbnail = $thumbnail; return $this; } public function getThumbnail(): ?LtiDeepLinkResourceIcon { return $this->thumbnail; } public function getCustomParams(): array { return $this->custom_params; } public function setCustomParams(array $value): LtiDeepLinkResource { $this->custom_params = $value; return $this; } public function getTarget(): string { return $this->target; } public function setTarget(string $value): LtiDeepLinkResource { $this->target = $value; return $this; } public function toArray(): array { $resource = [ 'type' => $this->type, 'title' => $this->title, 'text' => $this->text, 'url' => $this->url, 'presentation' => [ 'documentTarget' => $this->target, ], ]; if (!empty($this->custom_params)) { $resource['custom'] = $this->custom_params; } if (isset($this->icon)) { $resource['icon'] = $this->icon->toArray(); } if (isset($this->thumbnail)) { $resource['thumbnail'] = $this->thumbnail->toArray(); } if ($this->line_item !== null) { $resource['lineItem'] = [ 'scoreMaximum' => $this->line_item->getScoreMaximum(), 'label' => $this->line_item->getLabel(), ]; } return $resource; } }
Upload File
Create Folder