Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92272436
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
Mon, Nov 18, 23:49
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 20, 23:49 (2 d)
Engine
blob
Format
Raw Data
Handle
22410306
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