Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/storage/NuanceImportCursorData.php
<?php | <?php | ||||
final class NuanceImportCursorData | final class NuanceImportCursorData | ||||
extends NuanceDAO { | extends NuanceDAO | ||||
implements PhabricatorPolicyInterface { | |||||
protected $sourcePHID; | protected $sourcePHID; | ||||
protected $cursorKey; | protected $cursorKey; | ||||
protected $cursorType; | protected $cursorType; | ||||
protected $properties = array(); | protected $properties = array(); | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
Show All 23 Lines | public function getCursorProperty($key, $default = null) { | ||||
return idx($this->properties, $key, $default); | return idx($this->properties, $key, $default); | ||||
} | } | ||||
public function setCursorProperty($key, $value) { | public function setCursorProperty($key, $value) { | ||||
$this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | |||||
public function getCapabilities() { | |||||
return array( | |||||
PhabricatorPolicyCapability::CAN_VIEW, | |||||
); | |||||
} | |||||
public function getPolicy($capability) { | |||||
switch ($capability) { | |||||
case PhabricatorPolicyCapability::CAN_VIEW: | |||||
return PhabricatorPolicies::POLICY_USER; | |||||
} | |||||
} | |||||
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | |||||
return false; | |||||
} | |||||
public function describeAutomaticCapability($capability) { | |||||
return null; | |||||
} | |||||
} | } |