Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phrequent/storage/PhrequentUserTime.php
<?php | <?php | ||||
final class PhrequentUserTime extends PhrequentDAO | final class PhrequentUserTime extends PhrequentDAO | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
protected $userPHID; | protected $userPHID; | ||||
protected $objectPHID; | protected $objectPHID; | ||||
protected $note; | protected $note; | ||||
protected $dateStarted; | protected $dateStarted; | ||||
protected $dateEnded; | protected $dateEnded; | ||||
private $preemptingEvents = self::ATTACHABLE; | private $preemptingEvents = self::ATTACHABLE; | ||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'objectPHID' => 'phid?', | |||||
'note' => 'text?', | |||||
'dateStarted' => 'epoch', | |||||
'dateEnded' => 'epoch?', | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | |||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
); | ); | ||||
} | } | ||||
public function getPolicy($capability) { | public function getPolicy($capability) { | ||||
$policy = PhabricatorPolicies::POLICY_NOONE; | $policy = PhabricatorPolicies::POLICY_NOONE; | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |