mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: Add comments for ThumbnailStripField (from r106180)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112490 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c4b740f8c9
commit
e4257b76f5
@ -10,11 +10,28 @@ class ThumbnailStripField extends FormField {
|
|||||||
protected $parentField;
|
protected $parentField;
|
||||||
protected $updateMethod;
|
protected $updateMethod;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If this is enabled, then ommitting a folderID when calling getimages will search ALL folders.
|
||||||
|
* This is the legacy behaviour.
|
||||||
|
*
|
||||||
|
* The new behaviour is to only search the root folder if a folderID is ommitted.
|
||||||
|
*
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
protected static $use_legacy_image_search = false;
|
protected static $use_legacy_image_search = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* setter for ThumbnailStripField::use_legacy_image_search
|
||||||
|
* @param boolean $enable
|
||||||
|
*/
|
||||||
public static function set_use_legacy_image_search($enable) {
|
public static function set_use_legacy_image_search($enable) {
|
||||||
self::$use_legacy_image_search = $enable;
|
self::$use_legacy_image_search = $enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getter for ThumbnailStripField::use_legacy_image_search
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
public static function get_use_legacy_image_search() {
|
public static function get_use_legacy_image_search() {
|
||||||
return self::$use_legacy_image_search;
|
return self::$use_legacy_image_search;
|
||||||
}
|
}
|
||||||
@ -45,6 +62,8 @@ class ThumbnailStripField extends FormField {
|
|||||||
/**
|
/**
|
||||||
* Populate the Thumbnail strip field, by looking for a folder,
|
* Populate the Thumbnail strip field, by looking for a folder,
|
||||||
* and the descendants of this folder.
|
* and the descendants of this folder.
|
||||||
|
*
|
||||||
|
* @see ThumbnailStripField::use_legacy_image_search
|
||||||
*/
|
*/
|
||||||
function getimages() {
|
function getimages() {
|
||||||
$result = '';
|
$result = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user