protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
-
- // Set part description
- $this->setObjectDescription("A image helper class");
}
/**
/**
* Setter for image message string
*
- * @param $imageString A message to display in the image
+ * @param $imageString A message to display in image
* @return void
*/
public final function setImageString ($imageString) {
/**
* Getter for image message string
*
- * @return $imageString A message to display in the image
+ * @return $imageString A message to display in image
*/
public final function getImageString () {
return $this->imageStrings[$this->currString]['string'];
$templateInstance->assignVariable('image_fg_blue' , $this->foregroundColor['blue']);
// Add all strings
- foreach ($this->imageStrings as $id=>$imageString) {
- // Set current string id
+ foreach ($this->imageStrings as $id => $imageString) {
+ // Set current string id to keep this helper in sync with template engine
$this->currString = $id;
// Set variable group
$imageContent = $templateInstance->getRawTemplateData();
// Transfer all to the template engine
- $templateInstance->renderImageContent($imageContent);
+ $templateInstance->renderXmlContent($imageContent);
}
}