/** * * @param Input $field The field * @param string $previewImage The url of an optional preview image */ function __construct(Input $field, $previewImage = '') { $this->field = $field; $this->attribs = $field->GetHtmlAttributes(); $this->previewImage = $previewImage; }
function __construct(Input $field) { $this->field = $field; $this->attribs = $field->GetHtmlAttributes(); }