silverstripe-framework/src/Forms/PrintableTransformation.php
Sam Minnee 7a10c194bd NEW: Move code files into src/ folder.
This updates framework to be more in keeping with PHP conventions.
2016-11-01 13:37:24 +13:00

23 lines
566 B
PHP

<?php
namespace SilverStripe\Forms;
/**
* Transformation that will make a form printable.
* Builds on readonly forms with different behaviour for tabsets.
*/
class PrintableTransformation extends ReadonlyTransformation {
/**
* @param TabSet $field
* @return PrintableTransformation_TabSet
*/
public function transformTabSet($field) {
$transformedField = new PrintableTransformation_TabSet($field->Tabs()->transform($this));
$transformedField->Title = $field->Title();
$transformedField->TabSet = $field->TabSet;
return $transformedField;
}
}