ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Definition.php
Go to the documentation of this file.
1<?php
2
8{
9
14 public $setup = false;
15
26 public $optimized = null;
27
32 public $type;
33
39 abstract protected function doSetup($config);
40
45 public function setup($config)
46 {
47 if ($this->setup) {
48 return;
49 }
50 $this->setup = true;
51 $this->doSetup($config);
52 }
53}
54
55// vim: et sw=4 sts=4
Super-class for definition datatype objects, implements serialization functions for the class.
Definition: Definition.php:8
$type
What type of definition is it? @type string.
Definition: Definition.php:32
$optimized
If true, write out the final definition object to the cache after setup.
Definition: Definition.php:26
$setup
Has setup() been called yet? @type bool.
Definition: Definition.php:14
setup($config)
Setup function that aborts if already setup.
Definition: Definition.php:45
doSetup($config)
Sets up the definition object into the final form, something not done by the constructor.