Changeset 19885
- Timestamp:
- 07/05/09 10:35:24 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/branches/2.0-experimental/lib/sfLimeColorizer.php
r19883 r19885 57 57 sfLimeColorizer::style('COMMENT', array('fg' => 'yellow')); 58 58 59 sfLimeColorizer::style(' greenBar', array('fg' => 'white', 'bg' => 'green', 'bold' => true));60 sfLimeColorizer::style(' redBar', array('fg' => 'white', 'bg' => 'red', 'bold' => true));59 sfLimeColorizer::style('GREEN_BAR', array('fg' => 'white', 'bg' => 'green', 'bold' => true)); 60 sfLimeColorizer::style('RED_BAR', array('fg' => 'white', 'bg' => 'red', 'bold' => true)); 61 61 sfLimeColorizer::style('INFO_BAR', array('fg' => 'cyan', 'bold' => true)); tools/lime/branches/2.0-experimental/lib/sfLimeOutput.php
r19883 r19885 40 40 public function error($message) 41 41 { 42 echo $this->colorizer->colorize(sprintf(' %s ', $message), ' redBar')."\n";42 echo $this->colorizer->colorize(sprintf(' %s ', $message), 'RED_BAR')."\n"; 43 43 } 44 44 … … 58 58 public function greenBar($message) 59 59 { 60 echo $this->colorizer->colorize($message.str_repeat(' ', 71 - min(71, strlen($message))), ' greenBar')."\n";60 echo $this->colorizer->colorize($message.str_repeat(' ', 71 - min(71, strlen($message))), 'GREEN_BAR')."\n"; 61 61 } 62 62 63 63 public function redBar($message) 64 64 { 65 echo $this->colorizer->colorize($message.str_repeat(' ', 71 - min(71, strlen($message))), ' redBar')."\n";65 echo $this->colorizer->colorize($message.str_repeat(' ', 71 - min(71, strlen($message))), 'RED_BAR')."\n"; 66 66 } 67 67 }

