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:
Sam Minnee 2009-07-31 05:38:20 +00:00
parent fdc6574064
commit 21ca3123bc

View File

@ -76,7 +76,7 @@ class ViewableData extends Object implements IteratorAggregate {
}
// Set up cached methods
$methodNames = $this->allMethodNames();
$methodNames = get_class_methods($this);
foreach($methodNames as $methodName) {
if($methodName[0] == "_" && $methodName[1] != "_") {
$trimmedName = substr($methodName,1);