/**
* Groupable image strings?
*/
- private $groupable = "single";
+ private $groupable = 'single';
/**
* Protected constructor
* @return void
*/
public function initBackgroundColor () {
- $this->colorMode = "backgroundColor";
+ $this->colorMode = 'backgroundColor';
}
/**
* @return void
*/
public function initForegroundColor () {
- $this->colorMode = "foregroundColor";
+ $this->colorMode = 'foregroundColor';
}
/**
* @return void
* @todo Find something usefull for this method.
*/
- public function initImageString ($groupable = "single") {
+ public function initImageString ($groupable = 'single') {
$this->groupable = $groupable;
}
$foreColor = imagecolorallocate($this->getImageResource(), $red, $green, $blue);
switch ($this->groupable) {
- case "single": // Single image string
+ case 'single': // Single image string
// Compile image string
$imageString = $templateInstance->compileRawCode($this->getString());
imagestring($this->getImageResource(), $size, $x, $y, $imageString, $foreColor);
break;
- case "groupable": // More than one string allowed
+ case 'groupable': // More than one string allowed
// Walk through all groups
foreach ($templateInstance->getVariableGroups() as $group => $set) {
// Set the group