Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103170918
PhabricatorSSHWorkflow.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, Feb 27, 21:26
Size
787 B
Mime Type
text/x-php
Expires
Sat, Mar 1, 21:26 (2 d)
Engine
blob
Format
Raw Data
Handle
24465349
Attached To
rPH Phabricator
PhabricatorSSHWorkflow.php
View Options
<?php
abstract
class
PhabricatorSSHWorkflow
extends
PhutilArgumentWorkflow
{
private
$user
;
private
$iochannel
;
public
function
setUser
(
PhabricatorUser
$user
)
{
$this
->
user
=
$user
;
return
$this
;
}
public
function
getUser
()
{
return
$this
->
user
;
}
final
public
function
isExecutable
()
{
return
false
;
}
public
function
setIOChannel
(
PhutilChannel
$channel
)
{
$this
->
iochannel
=
$channel
;
return
$this
;
}
public
function
getIOChannel
()
{
return
$this
->
iochannel
;
}
public
function
readAllInput
()
{
$channel
=
$this
->
getIOChannel
();
while
(
$channel
->
update
())
{
PhutilChannel
::
waitForAny
(
array
(
$channel
));
if
(!
$channel
->
isOpenForReading
())
{
break
;
}
}
return
$channel
->
read
();
}
}
Event Timeline
Log In to Comment