ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Clone.php
Go to the documentation of this file.
1<?php
2
8{
13 protected $clone;
14
18 public function __construct($clone)
19 {
20 $this->clone = $clone;
21 }
22
29 public function validate($v, $config, $context)
30 {
31 return $this->clone->validate($v, $config, $context);
32 }
33
38 public function make($string)
39 {
40 return clone $this->clone;
41 }
42}
43
44// vim: et sw=4 sts=4
Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make.
Definition: Clone.php:8
$clone
What we're cloning.
Definition: Clone.php:13
validate($v, $config, $context)
Definition: Clone.php:29
Base class for all validating attribute definitions.
Definition: AttrDef.php:14