ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Clone.php
Go to the documentation of this file.
1 <?php
2 
8 {
12  protected $clone;
13 
14  public function __construct($clone) {
15  $this->clone = $clone;
16  }
17 
18  public function validate($v, $config, $context) {
19  return $this->clone->validate($v, $config, $context);
20  }
21 
22  public function make($string) {
23  return clone $this->clone;
24  }
25 
26 }
27 
28 // vim: et sw=4 sts=4
$clone
What we&#39;re cloning.
Definition: Clone.php:12
Base class for all validating attribute definitions.
Definition: AttrDef.php:13
validate($v, $config, $context)
Definition: Clone.php:18
Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make.
Definition: Clone.php:7