mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Improved performance of all ViewableData object instantiation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@83437 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fdc6574064
commit
21ca3123bc
@ -76,7 +76,7 @@ class ViewableData extends Object implements IteratorAggregate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set up cached methods
|
// Set up cached methods
|
||||||
$methodNames = $this->allMethodNames();
|
$methodNames = get_class_methods($this);
|
||||||
foreach($methodNames as $methodName) {
|
foreach($methodNames as $methodName) {
|
||||||
if($methodName[0] == "_" && $methodName[1] != "_") {
|
if($methodName[0] == "_" && $methodName[1] != "_") {
|
||||||
$trimmedName = substr($methodName,1);
|
$trimmedName = substr($methodName,1);
|
||||||
|
Loading…
Reference in New Issue
Block a user