Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112545259
MultimeterDimension.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
Sun, May 11, 07:22
Size
660 B
Mime Type
text/x-php
Expires
Tue, May 13, 07:22 (2 d)
Engine
blob
Format
Raw Data
Handle
26082604
Attached To
rPH Phabricator
MultimeterDimension.php
View Options
<?php
abstract
class
MultimeterDimension
extends
MultimeterDAO
{
protected
$name
;
protected
$nameHash
;
public
function
setName
(
$name
)
{
$this
->
nameHash
=
PhabricatorHash
::
digestForIndex
(
$name
);
return
parent
::
setName
(
$name
);
}
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_TIMESTAMPS
=>
false
,
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'name'
=>
'text'
,
'nameHash'
=>
'bytes12'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_hash'
=>
array
(
'columns'
=>
array
(
'nameHash'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
}
Event Timeline
Log In to Comment