X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fimages%2Fclass_BaseImage.php;h=5507309b774aa0342427ea61a4f385658c55e5f0;hp=86d7ab94e9c8edfe4a1d52452ab6e729a2d246af;hb=51caaa61ae7ee017abdfd116bbd8c438451315b2;hpb=3107989f93cfb5808ce9d75f1c7d2b7ee3d83d18 diff --git a/inc/classes/main/images/class_BaseImage.php b/inc/classes/main/images/class_BaseImage.php index 86d7ab94..5507309b 100644 --- a/inc/classes/main/images/class_BaseImage.php +++ b/inc/classes/main/images/class_BaseImage.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -78,7 +78,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { /** * Groupable image strings? */ - private $groupable = "single"; + private $groupable = 'single'; /** * Protected constructor @@ -89,10 +89,6 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { protected function __construct ($className) { // Call parent constructor parent::__construct($className); - - // Clean up a little - $this->removeNumberFormaters(); - $this->removeSystemArray(); } /** @@ -209,7 +205,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { * @return void */ public function initBackgroundColor () { - $this->colorMode = "backgroundColor"; + $this->colorMode = 'backgroundColor'; } /** @@ -228,7 +224,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { * @return void */ public function initForegroundColor () { - $this->colorMode = "foregroundColor"; + $this->colorMode = 'foregroundColor'; } /** @@ -248,7 +244,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { * @return void * @todo Find something usefull for this method. */ - public function initImageString ($groupable = "single") { + public function initImageString ($groupable = 'single') { $this->groupable = $groupable; } @@ -489,7 +485,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { $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()); @@ -505,7 +501,7 @@ class BaseImage extends BaseFrameworkSystem implements Registerable { 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