MINOR Removed references to ContentController from documentatin

This commit is contained in:
Ingo Schommer 2011-03-29 17:55:13 +13:00
parent b4affff38d
commit 0d39a888a1
5 changed files with 5 additions and 6 deletions

View File

@ -193,7 +193,7 @@ class ComplexTableField extends TableListField {
/**
* See class comments
*
* @param ContentController $controller
* @param Controller $controller
* @param string $name
* @param string $sourceClass
* @param array $fieldList

View File

@ -76,7 +76,7 @@ class HasManyComplexTableField extends ComplexTableField {
*/
function controllerClass() {
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() {

View File

@ -40,7 +40,7 @@ abstract class Validator extends Object {
/**
* 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.
* Use instance method {@link setJavascriptValidationHandler()} to
* only set handler for a specific form instance.

View File

@ -2,7 +2,8 @@
/**
* Provides a simple search engine for your site based on the MySQL FULLTEXT index.
* 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).
*
* @see http://doc.silverstripe.org/tutorial:4-site-search

View File

@ -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 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[] = new ObjectTest_T2();
$objs[] = new ObjectTest_T2();