Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98292290
PhabricatorCustomFieldNumericIndexStorage.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
Sat, Jan 11, 20:19
Size
871 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 20:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23554183
Attached To
rPH Phabricator
PhabricatorCustomFieldNumericIndexStorage.php
View Options
<?php
abstract
class
PhabricatorCustomFieldNumericIndexStorage
extends
PhabricatorCustomFieldIndexStorage
{
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'indexKey'
=>
'bytes12'
,
'indexValue'
=>
'sint64'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_join'
=>
array
(
'columns'
=>
array
(
'objectPHID'
,
'indexKey'
,
'indexValue'
),
),
'key_find'
=>
array
(
'columns'
=>
array
(
'indexKey'
,
'indexValue'
),
),
),
)
+
parent
::
getConfiguration
();
}
public
function
formatForInsert
(
AphrontDatabaseConnection
$conn
)
{
return
qsprintf
(
$conn
,
'(%s, %s, %d)'
,
$this
->
getObjectPHID
(),
$this
->
getIndexKey
(),
$this
->
getIndexValue
());
}
public
function
getIndexValueType
()
{
return
'int'
;
}
}
Event Timeline
Log In to Comment