ENHANCEMENT Added SetHeight() to the Image class, so we can call it from the templates

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61394 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-08-22 03:03:57 +00:00
parent c05ea7f653
commit 5893ac0a03

View File

@ -171,6 +171,10 @@ class Image extends File {
return $this->getFormattedImage('SetWidth', $width); return $this->getFormattedImage('SetWidth', $width);
} }
public function SetHeight($height) {
return $this->getFormattedImage('SetWidth', $height);
}
public function SetSize($width, $height) { public function SetSize($width, $height) {
return $this->getFormattedImage('SetSize', $width, $height); return $this->getFormattedImage('SetSize', $width, $height);
} }