Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95869320
NuanceImportCursorData.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, Dec 20, 03:10
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 22, 03:10 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
23068400
Attached To
rPH Phabricator
NuanceImportCursorData.php
View Options
<?php
final
class
NuanceImportCursorData
extends
NuanceDAO
implements
PhabricatorPolicyInterface
{
protected
$sourcePHID
;
protected
$cursorKey
;
protected
$cursorType
;
protected
$properties
=
array
();
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_AUX_PHID
=>
true
,
self
::
CONFIG_SERIALIZATION
=>
array
(
'properties'
=>
self
::
SERIALIZATION_JSON
,
),
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'cursorType'
=>
'text32'
,
'cursorKey'
=>
'text32'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_source'
=>
array
(
'columns'
=>
array
(
'sourcePHID'
,
'cursorKey'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
public
function
generatePHID
()
{
return
PhabricatorPHID
::
generateNewPHID
(
NuanceImportCursorPHIDType
::
TYPECONST
);
}
public
function
getCursorProperty
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
properties
,
$key
,
$default
);
}
public
function
setCursorProperty
(
$key
,
$value
)
{
$this
->
properties
[
$key
]
=
$value
;
return
$this
;
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
switch
(
$capability
)
{
case
PhabricatorPolicyCapability
::
CAN_VIEW
:
return
PhabricatorPolicies
::
POLICY_USER
;
}
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
public
function
describeAutomaticCapability
(
$capability
)
{
return
null
;
}
}
Event Timeline
Log In to Comment