Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F443696
PhabricatorConfigTableSchema.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigTableSchema.php
View Options
<?php
final
class
PhabricatorConfigTableSchema
extends
PhabricatorConfigStorageSchema
{
private
$collation
;
private
$columns
=
array
();
public
function
addColumn
(
PhabricatorConfigColumnSchema
$column
)
{
$key
=
$column
->
getName
();
if
(
isset
(
$this
->
columns
[
$key
]))
{
throw
new
Exception
(
pht
(
'Trying to add duplicate column "%s"!'
,
$key
));
}
$this
->
columns
[
$key
]
=
$column
;
return
$this
;
}
public
function
getColumns
()
{
return
$this
->
columns
;
}
public
function
getColumn
(
$key
)
{
return
idx
(
$this
->
getColumns
(),
$key
);
}
protected
function
getSubschemata
()
{
return
$this
->
getColumns
();
}
public
function
setCollation
(
$collation
)
{
$this
->
collation
=
$collation
;
return
$this
;
}
public
function
getCollation
()
{
return
$this
->
collation
;
}
public
function
compareToSimilarSchema
(
PhabricatorConfigStorageSchema
$expect
)
{
$issues
=
array
();
if
(
$this
->
getCollation
()
!=
$expect
->
getCollation
())
{
$issues
[]
=
self
::
ISSUE_COLLATION
;
}
return
$issues
;
}
public
function
newEmptyClone
()
{
$clone
=
clone
$this
;
$clone
->
columns
=
array
();
return
$clone
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 10:59 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64843
Default Alt Text
PhabricatorConfigTableSchema.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment