silverstripe-framework/widgets/WidgetFormProxy.php

12 lines
254 B
PHP
Raw Normal View History

<?php
class WidgetFormProxy extends Controller {
function getFormOwner() {
$widget = DataObject::get_by_id("Widget", $this->urlParams['ID']);
// Put this in once widget->canView is implemented
//if($widget->canView())
return $widget;
}
}