$templateInstance->loadCodeTemplate($this->getBaseImage());
// Assign all the image values with the template
- $templateInstance->assignVariable("image_name" , $this->getImageName());
- $templateInstance->assignVariable("image_type" , $this->getImageType());
- $templateInstance->assignVariable("image_width" , $this->getWidth());
- $templateInstance->assignVariable("image_height" , $this->getHeight());
- $templateInstance->assignVariable("image_bg_red" , $this->backgroundColor['red']);
- $templateInstance->assignVariable("image_bg_green", $this->backgroundColor['green']);
- $templateInstance->assignVariable("image_bg_blue" , $this->backgroundColor['blue']);
- $templateInstance->assignVariable("image_fg_red" , $this->foregroundColor['red']);
- $templateInstance->assignVariable("image_fg_green", $this->foregroundColor['green']);
- $templateInstance->assignVariable("image_fg_blue" , $this->foregroundColor['blue']);
+ $templateInstance->assignVariable('image_name' , $this->getImageName());
+ $templateInstance->assignVariable('image_type' , $this->getImageType());
+ $templateInstance->assignVariable('image_width' , $this->getWidth());
+ $templateInstance->assignVariable('image_height' , $this->getHeight());
+ $templateInstance->assignVariable('image_bg_red' , $this->backgroundColor['red']);
+ $templateInstance->assignVariable('image_bg_green', $this->backgroundColor['green']);
+ $templateInstance->assignVariable('image_bg_blue' , $this->backgroundColor['blue']);
+ $templateInstance->assignVariable('image_fg_red' , $this->foregroundColor['red']);
+ $templateInstance->assignVariable('image_fg_green', $this->foregroundColor['green']);
+ $templateInstance->assignVariable('image_fg_blue' , $this->foregroundColor['blue']);
// Add all strings
foreach ($this->imageStrings as $id=>$imageString) {
$templateInstance->setVariableGroup($id);
// Add group variables
- $templateInstance->addGroupVariable("image_x" , $this->getX());
- $templateInstance->addGroupVariable("image_y" , $this->getY());
- $templateInstance->addGroupVariable("image_size" , $this->getFontSize());
- $templateInstance->addGroupVariable("image_string", $this->getImageString());
+ $templateInstance->addGroupVariable('image_x' , $this->getX());
+ $templateInstance->addGroupVariable('image_y' , $this->getY());
+ $templateInstance->addGroupVariable('image_size' , $this->getFontSize());
+ $templateInstance->addGroupVariable('image_string', $this->getImageString());
} // END - foreach
// Get the raw content