系统类库
[ 查看开发文档 ] [ 类树图: Library ] [ 索引: Library ] [ 所有元素 ] [ 首页 ]

Class: CommandColor

源文件路径: /Library/CommandColor.class.php

Class Overview


命令行颜色控制类


Methods


Inherited Variables

Inherited Methods


Class Details

[line 9]
命令行颜色控制类


[ Top ]


Method Detail

get   [line 82]

void get( $string, [ $foreground_color = null], [ $background_color = null])

获取字符串颜色
  • See: getColoredString
  • Access: public

Parameters:

   $string   — 
   $foreground_color   — 
   $background_color   — 

[ Top ]

getBackgroundColors   [line 74]

void getBackgroundColors( )

返回所有背景颜色名称
  • Access: public

[ Top ]

getColoredString   [line 48]

string getColoredString( $string $string, [$foreground_color $foreground_color = null], [$background_color $background_color = null])

返回带颜色的字体和背景字符串
  • Access: public

Parameters:

$string   $string   —  string 原始字符串
$foreground_color   $foreground_color   —  string 字符串文字颜色
$background_color   $background_color   —  string 字符串背景颜色

[ Top ]

getForegroundColors   [line 67]

void getForegroundColors( )

返回所有字体颜色名称
  • Access: public

[ Top ]


Powered by Steeze. author email: spring.wind2006@163.com