Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19082553
PhabricatorRepositoryStatusMessage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorRepositoryStatusMessage.php
View Options
<?php
final
class
PhabricatorRepositoryStatusMessage
extends
PhabricatorRepositoryDAO
{
const
TYPE_INIT
=
'init'
;
const
TYPE_FETCH
=
'fetch'
;
const
TYPE_NEEDS_UPDATE
=
'needs-update'
;
const
CODE_ERROR
=
'error'
;
const
CODE_OKAY
=
'okay'
;
protected
$repositoryID
;
protected
$statusType
;
protected
$statusCode
;
protected
$parameters
=
array
();
protected
$epoch
;
protected
$messageCount
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_TIMESTAMPS
=>
false
,
self
::
CONFIG_SERIALIZATION
=>
array
(
'parameters'
=>
self
::
SERIALIZATION_JSON
,
),
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'statusType'
=>
'text32'
,
'statusCode'
=>
'text32'
,
'messageCount'
=>
'uint32'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'repositoryID'
=>
array
(
'columns'
=>
array
(
'repositoryID'
,
'statusType'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getParameter
(
$key
,
$default
=
null
)
{
return
idx
(
$this
->
parameters
,
$key
,
$default
);
}
public
function
getStatusTypeName
()
{
$names
=
array
(
self
::
TYPE_INIT
=>
pht
(
'Error While Initializing Repository'
),
self
::
TYPE_FETCH
=>
pht
(
'Error While Fetching Changes'
),
self
::
TYPE_NEEDS_UPDATE
=>
pht
(
'Repository Needs Update'
),
);
$type
=
$this
->
getStatusType
();
return
idx
(
$names
,
$type
,
$type
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 4, 11:32 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8329395
Default Alt Text
PhabricatorRepositoryStatusMessage.php (1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment