Skip to content
This repository
Browse code

FIX: Ticket #7592 GridFieldDataColumns: Wrong documentation for getFi…

…eldCasting Moved documentation to the appropriate function, added note about the two parameter callback function.
  • Loading branch information...
commit 20696958df3adf0843d405873684275d548b39c4 1 parent 8548014
jakr authored July 04, 2012 chillu committed July 04, 2012

Showing 1 changed file with 6 additions and 5 deletions. Show diff stats Hide diff stats

  1. 11  forms/gridfield/GridFieldDataColumns.php
11  forms/gridfield/GridFieldDataColumns.php
@@ -83,11 +83,6 @@ public function setFieldCasting($casting) {
83 83
 	}
84 84
 
85 85
 	/**
86  
-	 * Specify custom formatting for fields, e.g. to render a link instead of pure text.
87  
-	 * Caution: Make sure to escape special php-characters like in a normal php-statement.
88  
-	 * Example:	"myFieldName" => '<a href=\"custom-admin/$ID\">$ID</a>'.
89  
-	 * Alternatively, pass a anonymous function, which takes one parameter: The list item.
90  
-	 *
91 86
 	 * @return array
92 87
 	 */
93 88
 	public function getFieldCasting() {
@@ -95,6 +90,12 @@ public function getFieldCasting() {
95 90
 	}
96 91
 
97 92
 	/**
  93
+	 * Specify custom formatting for fields, e.g. to render a link instead of pure text.
  94
+	 * Caution: Make sure to escape special php-characters like in a normal php-statement.
  95
+	 * Example:	"myFieldName" => '<a href=\"custom-admin/$ID\">$ID</a>'.
  96
+	 * Alternatively, pass a anonymous function, which takes two parameters:
  97
+	 *  The value returned by Convert::raw2xml and the original list item.
  98
+	 *
98 99
 	 * @param array $formatting
99 100
 	 */
100 101
 	public function setFieldFormatting($formatting) {

0 notes on commit 2069695

Please sign in to comment.
Something went wrong with that request. Please try again.