ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilADTDateDefinition.php
Go to the documentation of this file.
1<?php
2
4{
5 // comparison
6
7 public function isComparableTo(ilADT $a_adt)
8 {
9 // has to be date-based
10 return ($a_adt instanceof ilADTDate || $a_adt instanceof ilADTDateTime);
11 }
12}
13
14?>
An exception for terminatinating execution or to throw for unit testing.
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
ADT definition base class.
ADT base class.
Definition: class.ilADT.php:12