code/panels/DashboardModelAdminPanel.php
public function modelsforpanel(SS_HTTPRequest $r) {
		$panel = $r->requestVar('modeladminpanel');
		return Convert::array2json($this->panel->getManagedModelsFor($panel));
	}
public function modelsforpanel(SS_HTTPRequest $r) {
		$panel = $r->requestVar('modeladminpanel');
		return Convert::array2json($this->panel->getManagedModelsFor($panel));
	}
Given a requested ModelAdmin subclass, get the managed models and provide a JSON response

@param SS_HTTPRequest The request object
@return string