silverstripe-frameworktest/code/FileUploadRole.php
2012-04-12 15:04:39 +12:00

13 lines
215 B
PHP

<?php
class FileUploadRole extends DataExtension{
function extraStatics($class = null, $extension = null) {
return array(
'has_one' => array(
'AFile' => 'File',
'AImage' => 'Image',
),
);
}
}
?>