Browse files

MINOR Updated GridFieldDetailForm naming

  • Loading branch information...
1 parent 24815ce commit 2ec9de1e59a968c1d6863fdc7793a0646a1c2d5b @chillu chillu committed Mar 12, 2012
Showing with 7 additions and 7 deletions.
  1. +2 −2 docs/en/topics/grid-field.md
  2. +5 −5 forms/gridfield/GridFieldDetailForm.php
View
4 docs/en/topics/grid-field.md
@@ -308,11 +308,11 @@ Here is an example in full. The actual implementation of the view and edit form
public function handleItem($gridField, $request) {
$record = $gridField->getList()->byId($request->param("ID"));
- return new GridFieldPopupForm_ItemRequest($gridField, $this, $record);
+ return new GridFieldDetailForm_ItemRequest($gridField, $this, $record);
}
}
- class GridFieldPopupForm_ItemRequest extends RequestHandler {
+ class GridFieldDetailForm_ItemRequest extends RequestHandler {
protected $gridField;
protected $component;
protected $record;
View
10 forms/gridfield/GridFieldDetailForm.php
@@ -55,7 +55,7 @@ public function __construct($name = 'DetailForm') {
*
* @param type $gridField
* @param type $request
- * @return GridFieldPopupForm_ItemRequest
+ * @return GridFieldDetailForm_ItemRequest
*/
public function handleItem($gridField, $request) {
$controller = $gridField->getForm()->Controller();
@@ -67,7 +67,7 @@ public function handleItem($gridField, $request) {
}
if(!$class = ClassInfo::exists(get_class($this) . "_ItemRequest")) {
- $class = 'GridFieldPopupForm_ItemRequest';
+ $class = 'GridFieldDetailForm_ItemRequest';
}
$handler = Object::create($class, $gridField, $this, $record, $controller, $this->name);
@@ -122,7 +122,7 @@ public function getValidator() {
}
}
-class GridFieldPopupForm_ItemRequest extends RequestHandler {
+class GridFieldDetailForm_ItemRequest extends RequestHandler {
/**
*
@@ -273,15 +273,15 @@ function ItemEditForm() {
}
/**
- * Traverse up nested requests until we reach the first that's not a GridFieldPopupForm_ItemRequest.
+ * Traverse up nested requests until we reach the first that's not a GridFieldDetailForm_ItemRequest.
* The opposite of {@link Controller::curr()}, required because
* Controller::$controller_stack is not directly accessible.
*
* @return Controller
*/
protected function getToplevelController() {
$c = $this->popupController;
- while($c && $c instanceof GridFieldPopupForm_ItemRequest) {
+ while($c && $c instanceof GridFieldDetailForm_ItemRequest) {
$c = $c->getController();
}
return $c;

0 comments on commit 2ec9de1

Please sign in to comment.