Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to embed this library in my Tool ( based on PHP codeigniter) ? #157

Open
anubhabmondalDirac opened this issue Feb 10, 2023 · 1 comment

Comments

@anubhabmondalDirac
Copy link

Hi everyone , I am new in LTI 1.3 - tao ,so for me this a bit hard to understand how to embed this library into my tool. For LMS , I am using Moodle .
If is there any example code availble for this library use by a Tool based on PHP , If available for demo purpose Can someone please share me?
I just confued about the workflow . That example code maybe help me to understand the complete architecture.

Thanks in Advance ! @Cicatrice

@anubhabmondalDirac
Copy link
Author

anubhabmondalDirac commented Feb 14, 2023

How can I implement find registration? what will be my code structure any one help ? @weaverryan @emgolubev @hectoras

use OAT\Library\Lti1p3Core\Registration\RegistrationInterface;
use OAT\Library\Lti1p3Core\Registration\RegistrationRepositoryInterface;

$registrationRepository = new class implements RegistrationRepositoryInterface
{
public function find(string $identifier): ?RegistrationInterface
{
// TODO: Implement find() method to find a registration by identifier, or null if not found.
}

public function findAll(): array
{
// TODO: Implement findAll() method to find all available registrations.
}

public function findByClientId(string $clientId) : ?RegistrationInterface
{
// TODO: Implement findByClientId() method to find a registration by client id, or null if not found.
}

public function findByPlatformIssuer(string $issuer, string $clientId = null): ?RegistrationInterface
{
// TODO: Implement findByPlatformIssuer() method to find a registration by platform issuer, and client id if provided.
}

public function findByToolIssuer(string $issuer, string $clientId = null): ?RegistrationInterface
{
// TODO: Implement findByToolIssuer() method to find a registration by tool issuer, and client id if provided.
}
};

any demo example code available ?
Thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant