ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
$clone
What we&#39;re cloning.
Definition: Clone.php:13
Base class for all validating attribute definitions.
Definition: AttrDef.php:13
validate($v, $config, $context)
Definition: Clone.php:29
Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make.
Definition: Clone.php:7