Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122169684
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
Wed, Jul 16, 07:53
Size
687 B
Mime Type
text/x-php
Expires
Fri, Jul 18, 07:53 (2 d)
Engine
blob
Format
Raw Data
Handle
27442825
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