Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108691589
DivinerWorkflow.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
Fri, Apr 18, 01:15
Size
699 B
Mime Type
text/x-php
Expires
Sun, Apr 20, 01:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25638481
Attached To
rPH Phabricator
DivinerWorkflow.php
View Options
<?php
abstract
class
DivinerWorkflow
extends
PhutilArgumentWorkflow
{
private
$atomCache
;
public
function
isExecutable
()
{
return
true
;
}
protected
function
getRoot
()
{
return
getcwd
();
}
protected
function
getConfig
(
$key
,
$default
=
null
)
{
return
$default
;
}
protected
function
getAtomCache
()
{
if
(!
$this
->
atomCache
)
{
$cache_directory
=
$this
->
getRoot
().
'/.divinercache'
;
$this
->
atomCache
=
new
DivinerAtomCache
(
$cache_directory
);
}
return
$this
->
atomCache
;
}
protected
function
log
(
$message
)
{
$console
=
PhutilConsole
::
getConsole
();
$console
->
getServer
()->
setEnableLog
(
true
);
$console
->
writeLog
(
$message
.
"
\n
"
);
}
}
Event Timeline
Log In to Comment