Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/storage/PhabricatorConfigManualActivity.php
12256 views
1
<?php
2
3
final class PhabricatorConfigManualActivity
4
extends PhabricatorConfigEntryDAO {
5
6
protected $activityType;
7
protected $parameters = array();
8
9
const TYPE_REINDEX = 'reindex';
10
const TYPE_IDENTITIES = 'identities';
11
12
13
protected function getConfiguration() {
14
return array(
15
self::CONFIG_TIMESTAMPS => false,
16
self::CONFIG_SERIALIZATION => array(
17
'parameters' => self::SERIALIZATION_JSON,
18
),
19
self::CONFIG_COLUMN_SCHEMA => array(
20
'activityType' => 'text64',
21
),
22
self::CONFIG_KEY_SCHEMA => array(
23
'key_type' => array(
24
'columns' => array('activityType'),
25
'unique' => true,
26
),
27
),
28
) + parent::getConfiguration();
29
}
30
31
public function setParameter($key, $value) {
32
$this->parameters[$key] = $value;
33
return $this;
34
}
35
36
public function getParameter($key, $default = null) {
37
return idx($this->parameters, $key, $default);
38
}
39
40
}
41
42