Beispiel #1
0
 /**
  * Returns the colour style for use within CSS.
  * Will return an optimised hash colour.
  *
  * e.g #123456
  *     #123 instead of #112233
  *     #F00 instead of red
  *
  * @param string $overridevalue If provided then this value will be used instead
  *     of the styles current value.
  * @return string
  */
 public function out($overridevalue = null)
 {
     if ($overridevalue === null) {
         $overridevalue = $this->value;
     }
     return parent::out(self::shrink_value($overridevalue));
 }