ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilADTDefinition.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11abstract class ilADTDefinition
12{
13 protected $allow_null; // [bool]
14
20 public function __construct()
21 {
22 $this->reset();
23 }
24
30 public function getType()
31 {
32 return substr(substr(get_class($this), 5), 0, -10);
33 }
34
38 protected function reset()
39 {
40 $this->setAllowNull(true);
41 }
42
43
44 //
45 // null
46 //
47
53 public function setAllowNull($a_value)
54 {
55 $this->allow_null = (bool)$a_value;
56 }
57
63 public function isNullAllowed()
64 {
65 return $this->allow_null;
66 }
67
68
69 //
70 // comparison
71 //
72
79 abstract public function isComparableTo(ilADT $a_adt);
80}
81
82?>
ADT definition base class.
isNullAllowed()
Is null currently allowed.
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
reset()
Init property defaults.
getType()
Get type (from class/instance)
__construct()
Constructor.
setAllowNull($a_value)
Toggle null allowed status.
ADT base class.
Definition: class.ilADT.php:12