public function __construct($name, $title = null, $baseValue = null, $value = null) { if (!isset(self::$count_cache[$name])) { self::$count_cache[$name] = array(); } self::$count_cache[$name][] = $this; $this->baseName = $name; $count = count(self::$count_cache[$name]); $this->baseValue = $count; if ($baseValue) { $this->baseValue = $baseValue; } $name .= '_' . $count; parent::__construct($name, $title, $value); }
/** * @param string $name * @param string $title * @param mixed $value */ public function __construct($name, $title = null, $value = "") { parent::__construct($name, $title, $value); }
/** * Creates a new field. * * @param string $name The internal field name, passed to forms. * @param string $title The human-readable field label. * @param mixed $value The value of the field. */ public function __construct($name, $title = null, $value = null) { parent::__construct($name, $title, $value); $this->setFieldHolderTemplate('FormField_holder'); }