Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a51019bb
Commit
a51019bb
authored
May 09, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Console helper: use self:: for refering to constants
parent
0f33f901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
Console.php
framework/helpers/base/Console.php
+26
-26
No files found.
framework/helpers/base/Console.php
View file @
a51019bb
...
...
@@ -316,76 +316,76 @@ class Console
$styleA
=
array
();
foreach
(
explode
(
';'
,
$ansi
)
as
$controlCode
)
{
switch
(
$controlCode
)
{
case
s
tatic
::
FG_BLACK
:
case
s
elf
::
FG_BLACK
:
$style
=
array
(
'color'
=>
'#000000'
);
break
;
case
s
tatic
::
FG_BLUE
:
case
s
elf
::
FG_BLUE
:
$style
=
array
(
'color'
=>
'#000078'
);
break
;
case
s
tatic
::
FG_CYAN
:
case
s
elf
::
FG_CYAN
:
$style
=
array
(
'color'
=>
'#007878'
);
break
;
case
s
tatic
::
FG_GREEN
:
case
s
elf
::
FG_GREEN
:
$style
=
array
(
'color'
=>
'#007800'
);
break
;
case
s
tatic
::
FG_GREY
:
case
s
elf
::
FG_GREY
:
$style
=
array
(
'color'
=>
'#787878'
);
break
;
case
s
tatic
::
FG_PURPLE
:
case
s
elf
::
FG_PURPLE
:
$style
=
array
(
'color'
=>
'#780078'
);
break
;
case
s
tatic
::
FG_RED
:
case
s
elf
::
FG_RED
:
$style
=
array
(
'color'
=>
'#780000'
);
break
;
case
s
tatic
::
FG_YELLOW
:
case
s
elf
::
FG_YELLOW
:
$style
=
array
(
'color'
=>
'#787800'
);
break
;
case
s
tatic
::
BG_BLACK
:
case
s
elf
::
BG_BLACK
:
$style
=
array
(
'background-color'
=>
'#000000'
);
break
;
case
s
tatic
::
BG_BLUE
:
case
s
elf
::
BG_BLUE
:
$style
=
array
(
'background-color'
=>
'#000078'
);
break
;
case
s
tatic
::
BG_CYAN
:
case
s
elf
::
BG_CYAN
:
$style
=
array
(
'background-color'
=>
'#007878'
);
break
;
case
s
tatic
::
BG_GREEN
:
case
s
elf
::
BG_GREEN
:
$style
=
array
(
'background-color'
=>
'#007800'
);
break
;
case
s
tatic
::
BG_GREY
:
case
s
elf
::
BG_GREY
:
$style
=
array
(
'background-color'
=>
'#787878'
);
break
;
case
s
tatic
::
BG_PURPLE
:
case
s
elf
::
BG_PURPLE
:
$style
=
array
(
'background-color'
=>
'#780078'
);
break
;
case
s
tatic
::
BG_RED
:
case
s
elf
::
BG_RED
:
$style
=
array
(
'background-color'
=>
'#780000'
);
break
;
case
s
tatic
::
BG_YELLOW
:
case
s
elf
::
BG_YELLOW
:
$style
=
array
(
'background-color'
=>
'#787800'
);
break
;
case
s
tatic
::
BOLD
:
case
s
elf
::
BOLD
:
$style
=
array
(
'font-weight'
=>
'bold'
);
break
;
case
s
tatic
::
ITALIC
:
case
s
elf
::
ITALIC
:
$style
=
array
(
'font-style'
=>
'italic'
);
break
;
case
s
tatic
::
UNDERLINE
:
case
s
elf
::
UNDERLINE
:
$style
=
array
(
'text-decoration'
=>
array
(
'underline'
));
break
;
case
s
tatic
::
OVERLINED
:
case
s
elf
::
OVERLINED
:
$style
=
array
(
'text-decoration'
=>
array
(
'overline'
));
break
;
case
s
tatic
::
CROSSED_OUT
:
case
s
elf
::
CROSSED_OUT
:
$style
=
array
(
'text-decoration'
=>
array
(
'line-through'
));
break
;
case
s
tatic
::
BLINK
:
case
s
elf
::
BLINK
:
$style
=
array
(
'text-decoration'
=>
array
(
'blink'
));
break
;
case
s
tatic
::
NEGATIVE
:
// ???
case
s
tatic
::
CONCEALED
:
case
s
tatic
::
ENCIRCLED
:
case
s
tatic
::
FRAMED
:
case
s
elf
::
NEGATIVE
:
// ???
case
s
elf
::
CONCEALED
:
case
s
elf
::
ENCIRCLED
:
case
s
elf
::
FRAMED
:
// TODO allow resetting codes
break
;
case
0
:
// ansi reset
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment