Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15285534
D21543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D21543.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -6115,7 +6115,6 @@
'PhabricatorPolicyInterface',
'PhabricatorApplicationTransactionInterface',
'PhabricatorProjectInterface',
- 'AlmanacPropertyInterface',
'PhabricatorDestructibleInterface',
'PhabricatorNgramsInterface',
'PhabricatorConduitResultInterface',
diff --git a/src/applications/almanac/storage/AlmanacNamespace.php b/src/applications/almanac/storage/AlmanacNamespace.php
--- a/src/applications/almanac/storage/AlmanacNamespace.php
+++ b/src/applications/almanac/storage/AlmanacNamespace.php
@@ -6,7 +6,6 @@
PhabricatorPolicyInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorProjectInterface,
- AlmanacPropertyInterface,
PhabricatorDestructibleInterface,
PhabricatorNgramsInterface,
PhabricatorConduitResultInterface {
@@ -17,13 +16,10 @@
protected $viewPolicy;
protected $editPolicy;
- private $almanacProperties = self::ATTACHABLE;
-
public static function initializeNewNamespace() {
return id(new self())
->setViewPolicy(PhabricatorPolicies::POLICY_USER)
- ->setEditPolicy(PhabricatorPolicies::POLICY_ADMIN)
- ->attachAlmanacProperties(array());
+ ->setEditPolicy(PhabricatorPolicies::POLICY_ADMIN);
}
protected function getConfiguration() {
@@ -113,53 +109,6 @@
}
-/* -( AlmanacPropertyInterface )------------------------------------------- */
-
-
- public function attachAlmanacProperties(array $properties) {
- assert_instances_of($properties, 'AlmanacProperty');
- $this->almanacProperties = mpull($properties, null, 'getFieldName');
- return $this;
- }
-
- public function getAlmanacProperties() {
- return $this->assertAttached($this->almanacProperties);
- }
-
- public function hasAlmanacProperty($key) {
- $this->assertAttached($this->almanacProperties);
- return isset($this->almanacProperties[$key]);
- }
-
- public function getAlmanacProperty($key) {
- return $this->assertAttachedKey($this->almanacProperties, $key);
- }
-
- public function getAlmanacPropertyValue($key, $default = null) {
- if ($this->hasAlmanacProperty($key)) {
- return $this->getAlmanacProperty($key)->getFieldValue();
- } else {
- return $default;
- }
- }
-
- public function getAlmanacPropertyFieldSpecifications() {
- return array();
- }
-
- public function newAlmanacPropertyEditEngine() {
- throw new PhutilMethodNotImplementedException();
- }
-
- public function getAlmanacPropertySetTransactionType() {
- throw new PhutilMethodNotImplementedException();
- }
-
- public function getAlmanacPropertyDeleteTransactionType() {
- throw new PhutilMethodNotImplementedException();
- }
-
-
/* -( PhabricatorPolicyInterface )----------------------------------------- */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 2:21 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225755
Default Alt Text
D21543.diff (2 KB)
Attached To
Mode
D21543: Remove "AlmanacPropertyInterface" from "AlmanacNamespace"
Attached
Detach File
Event Timeline
Log In to Comment