ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAccessibilityTableDataProviderFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilAccessibilityTableDataProviderFactory:

Public Member Functions

 getByContext (string $context)
 
 setDatabaseAdapter (?ilDBInterface $db)
 
 getDatabaseAdapter ()
 

Data Fields

const CONTEXT_DOCUMENTS = 'documents'
 

Protected Member Functions

 validateConfiguration (array $mandatoryMemberVariables)
 
 getExceptionByMember (string $member)
 

Protected Attributes

ilDBInterface $db = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilAccessibilityTableDataProviderFactory

Definition at line 22 of file class.ilAccessibilityTableDataProviderFactory.php.

Member Function Documentation

◆ getByContext()

ilAccessibilityTableDataProviderFactory::getByContext ( string  $context)

Definition at line 28 of file class.ilAccessibilityTableDataProviderFactory.php.

29  {
30  switch ($context) {
31  case self::CONTEXT_DOCUMENTS:
33 
34  default:
35  throw new InvalidArgumentException('Provider not supported');
36  }
37  }
$context
Definition: webdav.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getDatabaseAdapter()

ilAccessibilityTableDataProviderFactory::getDatabaseAdapter ( )

◆ getExceptionByMember()

ilAccessibilityTableDataProviderFactory::getExceptionByMember ( string  $member)
protected
Exceptions
InvalidArgumentException

Definition at line 55 of file class.ilAccessibilityTableDataProviderFactory.php.

Referenced by validateConfiguration().

56  {
57  switch ($member) {
58  case 'db':
60  'Incomplete factory configuration. Please inject a database adapter.'
61  );
62 
63  default:
64  throw new InvalidArgumentException("Exception for member {$member} not supported");
65  }
66  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ setDatabaseAdapter()

ilAccessibilityTableDataProviderFactory::setDatabaseAdapter ( ?ilDBInterface  $db)

Definition at line 68 of file class.ilAccessibilityTableDataProviderFactory.php.

References $db.

68  : void
69  {
70  $this->db = $db;
71  }

◆ validateConfiguration()

ilAccessibilityTableDataProviderFactory::validateConfiguration ( array  $mandatoryMemberVariables)
protected
Exceptions
ilAccessibilityMissingDatabaseAdapterException

Definition at line 42 of file class.ilAccessibilityTableDataProviderFactory.php.

References getExceptionByMember(), and null.

42  : void
43  {
44  foreach ($mandatoryMemberVariables as $member) {
45  if (null === $this->{$member}) {
46  $exception = $this->getExceptionByMember($member);
47  throw $exception;
48  }
49  }
50  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

Field Documentation

◆ $db

ilDBInterface ilAccessibilityTableDataProviderFactory::$db = null
protected

◆ CONTEXT_DOCUMENTS

const ilAccessibilityTableDataProviderFactory::CONTEXT_DOCUMENTS = 'documents'

The documentation for this class was generated from the following file: