mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed references to ContentController from documentatin
This commit is contained in:
parent
b4affff38d
commit
0d39a888a1
@ -193,7 +193,7 @@ class ComplexTableField extends TableListField {
|
|||||||
/**
|
/**
|
||||||
* See class comments
|
* See class comments
|
||||||
*
|
*
|
||||||
* @param ContentController $controller
|
* @param Controller $controller
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $sourceClass
|
* @param string $sourceClass
|
||||||
* @param array $fieldList
|
* @param array $fieldList
|
||||||
|
@ -76,7 +76,7 @@ class HasManyComplexTableField extends ComplexTableField {
|
|||||||
*/
|
*/
|
||||||
function controllerClass() {
|
function controllerClass() {
|
||||||
if($this->controller instanceof DataObject) return $this->controller->class;
|
if($this->controller instanceof DataObject) return $this->controller->class;
|
||||||
elseif($this->controller instanceof ContentController) return $this->controller->data()->class;
|
elseif($this->controller instanceof Controller) return $this->controller->data()->class;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getControllerID() {
|
function getControllerID() {
|
||||||
|
@ -40,7 +40,7 @@ abstract class Validator extends Object {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this function to set the javascript validation handler for all valdiation on your site.
|
* Call this function to set the javascript validation handler for all valdiation on your site.
|
||||||
* This could be called from _config.php to set site-wide javascript validation, or from ContentController::init()
|
* This could be called from _config.php to set site-wide javascript validation, or from Controller::init()
|
||||||
* to affect only the front-end site.
|
* to affect only the front-end site.
|
||||||
* Use instance method {@link setJavascriptValidationHandler()} to
|
* Use instance method {@link setJavascriptValidationHandler()} to
|
||||||
* only set handler for a specific form instance.
|
* only set handler for a specific form instance.
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
/**
|
/**
|
||||||
* Provides a simple search engine for your site based on the MySQL FULLTEXT index.
|
* Provides a simple search engine for your site based on the MySQL FULLTEXT index.
|
||||||
* Adds the {@link FulltextSearchable} extension to data classes,
|
* Adds the {@link FulltextSearchable} extension to data classes,
|
||||||
* as well as the {@link ContentControllerSearchExtension} to {@link ContentController}.
|
* as well as the {@link ContentControllerSearchExtension} to {@link ContentController}
|
||||||
|
* (if the 'cms' module is available as well).
|
||||||
* (this means you can use $SearchForm in your template without changing your own implementation).
|
* (this means you can use $SearchForm in your template without changing your own implementation).
|
||||||
*
|
*
|
||||||
* @see http://doc.silverstripe.org/tutorial:4-site-search
|
* @see http://doc.silverstripe.org/tutorial:4-site-search
|
||||||
|
@ -22,8 +22,6 @@ class ObjectTest extends SapphireTest {
|
|||||||
$this->assertTrue($obj->hasMethod('extendableMethod'), "Extension method found in original spelling");
|
$this->assertTrue($obj->hasMethod('extendableMethod'), "Extension method found in original spelling");
|
||||||
$this->assertTrue($obj->hasMethod('ExTendableMethod'), "Extension method found case-insensitive");
|
$this->assertTrue($obj->hasMethod('ExTendableMethod'), "Extension method found case-insensitive");
|
||||||
|
|
||||||
/* The above examples make use of SiteTree, Versioned and ContentController. Let's test defineMethods() more
|
|
||||||
* directly, with some sample objects */
|
|
||||||
$objs = array();
|
$objs = array();
|
||||||
$objs[] = new ObjectTest_T2();
|
$objs[] = new ObjectTest_T2();
|
||||||
$objs[] = new ObjectTest_T2();
|
$objs[] = new ObjectTest_T2();
|
||||||
|
Loading…
Reference in New Issue
Block a user