Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthSession.php
Show All 30 Lines | public function attachIdentityObject($identity_object) { | ||||
$this->identityObject = $identity_object; | $this->identityObject = $identity_object; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getIdentityObject() { | public function getIdentityObject() { | ||||
return $this->assertAttached($this->identityObject); | return $this->assertAttached($this->identityObject); | ||||
} | } | ||||
public function delete() { | |||||
// TODO: We don't have a proper `id` column yet, so make this work as | |||||
// expected until we do. | |||||
queryfx( | |||||
$this->establishConnection('w'), | |||||
'DELETE FROM %T WHERE sessionKey = %s', | |||||
$this->getTableName(), | |||||
$this->getSessionKey()); | |||||
return $this; | |||||
} | |||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
); | ); | ||||
Show All 26 Lines |