Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893191
PhabricatorSSHWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorSSHWorkflow.php
View Options
<?php
abstract
class
PhabricatorSSHWorkflow
extends
PhutilArgumentWorkflow
{
private
$user
;
private
$iochannel
;
private
$errorChannel
;
public
function
setErrorChannel
(
PhutilChannel
$error_channel
)
{
$this
->
errorChannel
=
$error_channel
;
return
$this
;
}
public
function
getErrorChannel
(
)
{
return
$this
->
errorChannel
;
}
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
(
)
;
}
public
function
writeIO
(
$data
)
{
$this
->
getIOChannel
(
)
->
write
(
$data
)
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:02 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127219
Default Alt Text
PhabricatorSSHWorkflow.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment