Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893889
PhabricatorManagementWorkflow.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
835 B
Referenced Files
None
Subscribers
None
PhabricatorManagementWorkflow.php
View Options
<?php
abstract
class
PhabricatorManagementWorkflow
extends
PhutilArgumentWorkflow
{
public
function
isExecutable
(
)
{
return
true
;
}
public
function
getViewer
(
)
{
// Some day, we might provide a more general viewer mechanism to scripts.
// For now, workflows can call this method for convenience and future
// flexibility.
return
PhabricatorUser
::
getOmnipotentUser
(
)
;
}
protected
function
parseTimeArgument
(
$time
)
{
if
(
!
strlen
(
$time
)
)
{
return
null
;
}
$epoch
=
strtotime
(
$time
)
;
if
(
$epoch
<=
0
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'Unable to parse time "%s".'
,
$time
)
)
;
}
return
$epoch
;
}
protected
function
newContentSource
(
)
{
return
PhabricatorContentSource
::
newForSource
(
PhabricatorConsoleContentSource
::
SOURCECONST
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:09 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127756
Default Alt Text
PhabricatorManagementWorkflow.php (835 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment