'text'
);
- /**
- * Image instance
- */
- private $imageInstance = null;
-
/**
* Current main node
*/
$methodName = 'finish' . $this->convertToClassName($nodeName);
// Call the corresponding method
- call_user_func_array(array($this->imageInstance, $methodName), array());
+ call_user_func_array(array($this->getImageInstance(), $methodName), array());
}
/**
$className = $this->convertToClassName($imageType.'_image');
// And try to initiate it
- $this->imageInstance = ObjectFactory::createObjectByName($className, array($this));
+ $this->setImageInstance(ObjectFactory::createObjectByName($className, array($this)));
// Set current main node to type
$this->currMainNode = 'type';
*/
private function setImageResolution () {
// Call the image class
- $this->imageInstance->initResolution();
+ $this->getImageInstance()->initResolution();
// Current main node is resolution
$this->currMainNode = 'resolution';
*/
private function setImageBase () {
// Call the image class
- $this->imageInstance->initBase();
+ $this->getImageInstance()->initBase();
// Current main node is resolution
$this->currMainNode = 'base';
*/
private function setImageBackgroundColor () {
// Call the image class
- $this->imageInstance->initBackgroundColor();
+ $this->getImageInstance()->initBackgroundColor();
// Current main node is background-color
$this->currMainNode = 'background-color';
*/
private function setImageForegroundColor () {
// Call the image class
- $this->imageInstance->initForegroundColor();
+ $this->getImageInstance()->initForegroundColor();
// Current main node is foreground-color
$this->currMainNode = 'foreground-color';
*/
private function setImageImageString ($groupable = 'single') {
// Call the image class
- $this->imageInstance->initImageString($groupable);
+ $this->getImageInstance()->initImageString($groupable);
// Current main node is foreground-color
$this->currMainNode = 'image-string';
*/
private function setImagePropertyName ($imageName) {
// Call the image class
- $this->imageInstance->setImageName($imageName);
+ $this->getImageInstance()->setImageName($imageName);
}
/**
*/
private function setImagePropertyWidth ($width) {
// Call the image class
- $this->imageInstance->setWidth($width);
+ $this->getImageInstance()->setWidth($width);
}
/**
*/
private function setImagePropertyHeight ($height) {
// Call the image class
- $this->imageInstance->setHeight($height);
+ $this->getImageInstance()->setHeight($height);
}
/**
*/
private function setImagePropertyRed ($red) {
// Call the image class
- $this->imageInstance->setRed($red);
+ $this->getImageInstance()->setRed($red);
}
/**
*/
private function setImagePropertyGreen ($green) {
// Call the image class
- $this->imageInstance->setGreen($green);
+ $this->getImageInstance()->setGreen($green);
}
/**
*/
private function setImagePropertyBlue ($blue) {
// Call the image class
- $this->imageInstance->setBlue($blue);
+ $this->getImageInstance()->setBlue($blue);
}
/**
*/
private function setImagePropertyStringName ($stringName) {
// Call the image class
- $this->imageInstance->setStringName($stringName);
+ $this->getImageInstance()->setStringName($stringName);
}
/**
*/
private function setImagePropertyFontSize ($fontSize) {
// Call the image class
- $this->imageInstance->setFontSize($fontSize);
+ $this->getImageInstance()->setFontSize($fontSize);
}
/**
*/
private function setImagePropertyText ($imageString) {
// Call the image class
- $this->imageInstance->setString($imageString);
+ $this->getImageInstance()->setString($imageString);
}
/**
*/
private function setImagePropertyX ($x) {
// Call the image class
- $this->imageInstance->setX($x);
+ $this->getImageInstance()->setX($x);
}
/**
*/
private function setImagePropertyY ($y) {
// Call the image class
- $this->imageInstance->setY($y);
+ $this->getImageInstance()->setY($y);
}
/**
$this->getGenericBasePath(),
'images/_cache',
md5(
- $this->imageInstance->getImageName() . ':' . $this->__toString() . ':' . $this->imageInstance->__toString()
+ $this->getImageInstance()->getImageName() . ':' . $this->__toString() . ':' . $this->getImageInstance()->__toString()
),
- $this->imageInstance->getImageType()
+ $this->getImageInstance()->getImageType()
);
// Return it
*/
public function transferToResponse (Responseable $responseInstance) {
// Set the image instance
- $responseInstance->setImageInstance($this->imageInstance);
+ $responseInstance->setImageInstance($this->getImageInstance());
}
/**