Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113108011
PhabricatorConfigColumnSchema.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, May 15, 03:04
Size
1 KB
Mime Type
text/x-php
Expires
Sat, May 17, 03:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26190135
Attached To
rPH Phabricator
PhabricatorConfigColumnSchema.php
View Options
<?php
final
class
PhabricatorConfigColumnSchema
extends
PhabricatorConfigStorageSchema
{
private
$characterSet
;
private
$collation
;
private
$columnType
;
public
function
setColumnType
(
$column_type
)
{
$this
->
columnType
=
$column_type
;
return
$this
;
}
public
function
getColumnType
()
{
return
$this
->
columnType
;
}
protected
function
getSubschemata
()
{
return
array
();
}
public
function
setCollation
(
$collation
)
{
$this
->
collation
=
$collation
;
return
$this
;
}
public
function
getCollation
()
{
return
$this
->
collation
;
}
public
function
setCharacterSet
(
$character_set
)
{
$this
->
characterSet
=
$character_set
;
return
$this
;
}
public
function
getCharacterSet
()
{
return
$this
->
characterSet
;
}
public
function
compareToSimilarSchema
(
PhabricatorConfigStorageSchema
$expect
)
{
$issues
=
array
();
if
(
$this
->
getCharacterSet
()
!=
$expect
->
getCharacterSet
())
{
$issues
[]
=
self
::
ISSUE_CHARSET
;
}
if
(
$this
->
getCollation
()
!=
$expect
->
getCollation
())
{
$issues
[]
=
self
::
ISSUE_COLLATION
;
}
if
(
$this
->
getColumnType
()
!=
$expect
->
getColumnType
())
{
$issues
[]
=
self
::
ISSUE_COLUMNTYPE
;
}
return
$issues
;
}
public
function
newEmptyClone
()
{
$clone
=
clone
$this
;
return
$clone
;
}
}
Event Timeline
Log In to Comment