mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9501 from mattclegg/1588075087
DOCS: Fix typos & grammer
This commit is contained in:
commit
8bd9f48669
@ -440,7 +440,7 @@ Requirements::set_write_js_to_body(false);
|
||||
|
||||
## Direct resource urls
|
||||
|
||||
In templates you can use the `$resourcePath()` or `$resourceURL()` helper methods to inject links to
|
||||
In templates, you can use the `$resourcePath()` or `$resourceURL()` helper methods to inject links to
|
||||
resources directly. If you want to link to resources within a specific module you can use
|
||||
the `vendor/module:some/path/to/file.jpg` syntax.
|
||||
|
||||
|
@ -214,9 +214,7 @@ SilverStripe\Core\Injector\Injector:
|
||||
|
||||
## Storage
|
||||
|
||||
Manipulated images are stored as "file variants" in the same
|
||||
folder structure as the original image. The storage mechanism is described
|
||||
in the ["File Storage" guide](file_storage).
|
||||
Manipulated images are stored as "file variants" in the same folder structure as the original image. The storage mechanism is described in the ["File Storage" guide](file_storage).
|
||||
|
||||
## API Documentation
|
||||
|
||||
|
@ -604,10 +604,10 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the list to include items with these charactaristics
|
||||
* Filter the list to include items with these characteristics
|
||||
*
|
||||
* @return ArrayList
|
||||
* @see SS_List::filter()
|
||||
* @see Filterable::filter()
|
||||
* @example $list->filter('Name', 'bob'); // only bob in the list
|
||||
* @example $list->filter('Name', array('aziz', 'bob'); // aziz and bob in list
|
||||
* @example $list->filter(array('Name'=>'bob, 'Age'=>21)); // bob with the Age 21 in list
|
||||
@ -642,7 +642,7 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a copy of this list which contains items matching any of these charactaristics.
|
||||
* Return a copy of this list which contains items matching any of these characteristics.
|
||||
*
|
||||
* @example // only bob in the list
|
||||
* $list = $list->filterAny('Name', 'bob');
|
||||
@ -765,7 +765,7 @@ class ArrayList extends ViewableData implements SS_List, Filterable, Sortable, L
|
||||
}
|
||||
|
||||
/**
|
||||
* Exclude the list to not contain items with these charactaristics
|
||||
* Exclude the list to not contain items with these characteristics
|
||||
*
|
||||
* @return ArrayList
|
||||
* @see SS_List::exclude()
|
||||
|
@ -365,7 +365,7 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li
|
||||
/**
|
||||
* Return a copy of this list which only includes items with these characteristics
|
||||
*
|
||||
* @see SS_List::filter()
|
||||
* @see Filterable::filter()
|
||||
*
|
||||
* @example $list = $list->filter('Name', 'bob'); // only bob in the list
|
||||
* @example $list = $list->filter('Name', array('aziz', 'bob'); // aziz and bob in list
|
||||
@ -422,7 +422,7 @@ class DataList extends ViewableData implements SS_List, Filterable, Sortable, Li
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a copy of this list which contains items matching any of these charactaristics.
|
||||
* Return a copy of this list which contains items matching any of these characteristics.
|
||||
*
|
||||
* @example // only bob in the list
|
||||
* $list = $list->filterAny('Name', 'bob');
|
||||
|
@ -22,7 +22,7 @@ interface Filterable extends SS_List
|
||||
public function canFilterBy($by);
|
||||
|
||||
/**
|
||||
* Return a new instance of this list that only includes items with these charactaristics
|
||||
* Return a new instance of this list that only includes items with these characteristics
|
||||
*
|
||||
* @return Filterable
|
||||
* @example $list = $list->filter('Name', 'bob'); // only bob in the list
|
||||
@ -35,7 +35,7 @@ interface Filterable extends SS_List
|
||||
public function filter();
|
||||
|
||||
/**
|
||||
* Return a copy of this list which contains items matching any of these charactaristics.
|
||||
* Return a copy of this list which contains items matching any of these characteristics.
|
||||
*
|
||||
* @example // only bob in the list
|
||||
* $list = $list->filterAny('Name', 'bob');
|
||||
@ -59,7 +59,7 @@ interface Filterable extends SS_List
|
||||
public function filterAny();
|
||||
|
||||
/**
|
||||
* Return a new instance of this list that excludes any items with these charactaristics
|
||||
* Return a new instance of this list that excludes any items with these characteristics
|
||||
*
|
||||
* @return Filterable
|
||||
* @example $list = $list->exclude('Name', 'bob'); // exclude bob from list
|
||||
@ -72,7 +72,7 @@ interface Filterable extends SS_List
|
||||
public function exclude();
|
||||
|
||||
/**
|
||||
* Return a new instance of this list that excludes any items with these charactaristics
|
||||
* Return a new instance of this list that excludes any items with these characteristics
|
||||
* Filter this List by a callback function. The function will be passed each record of the List in turn,
|
||||
* and must return true for the record to be included. Returns the filtered list.
|
||||
*
|
||||
|
@ -182,7 +182,7 @@ abstract class ListDecorator extends ViewableData implements SS_List, Sortable,
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the list to include items with these charactaristics
|
||||
* Filter the list to include items with these characteristics
|
||||
*
|
||||
* @example $list->filter('Name', 'bob'); // only bob in list
|
||||
* @example $list->filter('Name', array('aziz', 'bob'); // aziz and bob in list
|
||||
@ -195,7 +195,7 @@ abstract class ListDecorator extends ViewableData implements SS_List, Sortable,
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a copy of this list which contains items matching any of these charactaristics.
|
||||
* Return a copy of this list which contains items matching any of these characteristics.
|
||||
*
|
||||
* @example // only bob in the list
|
||||
* $list = $list->filterAny('Name', 'bob');
|
||||
@ -275,7 +275,7 @@ abstract class ListDecorator extends ViewableData implements SS_List, Sortable,
|
||||
}
|
||||
|
||||
/**
|
||||
* Exclude the list to not contain items with these charactaristics
|
||||
* Exclude the list to not contain items with these characteristics
|
||||
*
|
||||
* @example $list->exclude('Name', 'bob'); // exclude bob from list
|
||||
* @example $list->exclude('Name', array('aziz', 'bob'); // exclude aziz and bob from list
|
||||
|
@ -15,7 +15,8 @@ use SilverStripe\Core\TempFolder;
|
||||
* - BASE_URL: Full URL to the webroot, e.g. "http://my-host.com/my-webroot" (no trailing slash).
|
||||
* - BASE_PATH: Absolute path to the webroot, e.g. "/var/www/my-webroot" (no trailing slash).
|
||||
* See Director::baseFolder(). Can be overwritten by Config::modify()->set(Director::class, 'alternate_base_folder', ).
|
||||
* - TEMP_PATH: Absolute path to temporary folder, used for manifest and template caches. Example: "/var/tmp"
|
||||
* - TEMP_PATH: Absolute path to temporary folder, used as base for $TEMP_FOLDER. Example: "/var/tmp"
|
||||
* - TEMP_FOLDER: folder name for manifest and template caches. Example: "silverstripe-cache-php7.2"
|
||||
* See getTempFolder(). No trailing slash.
|
||||
* - ASSETS_DIR: Dir for assets folder. e.g. "assets"
|
||||
* - ASSETS_PATH: Full path to assets folder. e.g. "/var/www/my-webroot/assets"
|
||||
|
Loading…
Reference in New Issue
Block a user