Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119420031
PhabricatorConfigKeySchema.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
Thu, Jun 26, 17:13
Size
998 B
Mime Type
text/x-php
Expires
Sat, Jun 28, 17:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27003135
Attached To
rPH Phabricator
PhabricatorConfigKeySchema.php
View Options
<?php
final
class
PhabricatorConfigKeySchema
extends
PhabricatorConfigStorageSchema
{
private
$columnNames
;
private
$unique
;
public
function
setUnique
(
$unique
)
{
$this
->
unique
=
$unique
;
return
$this
;
}
public
function
getUnique
()
{
return
$this
->
unique
;
}
public
function
setColumnNames
(
array
$column_names
)
{
$this
->
columnNames
=
array_values
(
$column_names
);
return
$this
;
}
public
function
getColumnNames
()
{
return
$this
->
columnNames
;
}
protected
function
getSubschemata
()
{
return
array
();
}
public
function
compareToSimilarSchema
(
PhabricatorConfigStorageSchema
$expect
)
{
$issues
=
array
();
if
(
$this
->
getColumnNames
()
!==
$expect
->
getColumnNames
())
{
$issues
[]
=
self
::
ISSUE_KEYCOLUMNS
;
}
if
(
$this
->
getUnique
()
!==
$expect
->
getUnique
())
{
$issues
[]
=
self
::
ISSUE_UNIQUE
;
}
return
$issues
;
}
public
function
newEmptyClone
()
{
$clone
=
clone
$this
;
return
$clone
;
}
}
Event Timeline
Log In to Comment