Пример #1
0
 public static function output($output, $foreground = null, $background = null)
 {
     if (!empty($foreground) || !empty($background)) {
         $output = IfwPsn_Wp_Plugin_Cli_Colors::getInstance()->getColoredString($output, $foreground, $background);
     }
     echo $output;
 }
Пример #2
0
 /**
  * @return IfwPsn_Wp_Plugin_Cli_Colors
  */
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }