Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64858544
PhutilCommandString.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, May 30, 00:14
Size
687 B
Mime Type
text/x-php
Expires
Sat, Jun 1, 00:14 (2 d)
Engine
blob
Format
Raw Data
Handle
17959646
Attached To
rPHU libphutil
PhutilCommandString.php
View Options
<?php
final
class
PhutilCommandString
extends
Phobject
{
private
$argv
;
public
function
__construct
(
array
$argv
)
{
$this
->
argv
=
$argv
;
// This makes sure we throw immediately if there are errors in the
// parameters.
$this
->
getMaskedString
();
}
public
function
__toString
()
{
return
$this
->
getMaskedString
();
}
public
function
getUnmaskedString
()
{
return
$this
->
renderString
(
true
);
}
public
function
getMaskedString
()
{
return
$this
->
renderString
(
false
);
}
private
function
renderString
(
$unmasked
)
{
return
xsprintf
(
'xsprintf_command'
,
array
(
'unmasked'
=>
$unmasked
,
),
$this
->
argv
);
}
}
Event Timeline
Log In to Comment