ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilADTSearchBridgeMulti.php
Go to the documentation of this file.
1 <?php
2 
3 require_once "Services/ADT/classes/Bridges/class.ilADTSearchBridgeSingle.php";
4 
6 {
7  protected function setDefinition(ilADTDefinition $a_adt_def)
8  {
9  if ($this->isValidADTDefinition($a_adt_def)) {
10  $def = $this->convertADTDefinitionToMulti($a_adt_def);
11  $this->adt = ilADTFactory::getInstance()->getInstanceByDefinition($def);
12  return;
13  }
14 
15  throw new Exception('ilADTSearchBridge type mismatch.');
16  }
17 
23  abstract protected function convertADTDefinitionToMulti(ilADTDefinition $a_adt_def);
24 }
isValidADTDefinition(ilADTDefinition $a_adt_def)
Check if given ADT definition is valid.
static getInstance()
Get singleton.
setDefinition(ilADTDefinition $a_adt_def)
convertADTDefinitionToMulti(ilADTDefinition $a_adt_def)
Convert definition to multi version.
$def
Definition: croninfo.php:21
ADT definition base class.