Changeset View
Changeset View
Standalone View
Standalone View
src/applications/system/storage/PhabricatorSystemActionLog.php
<?php | <?php | ||||
final class PhabricatorSystemActionLog extends PhabricatorSystemDAO { | final class PhabricatorSystemActionLog extends PhabricatorSystemDAO { | ||||
protected $actorHash; | protected $actorHash; | ||||
protected $actorIdentity; | protected $actorIdentity; | ||||
protected $action; | protected $action; | ||||
protected $score; | protected $score; | ||||
protected $epoch; | protected $epoch; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'actorHash' => 'bytes12', | |||||
'actorIdentity' => 'text255', | |||||
'action' => 'text32', | |||||
'score' => 'double', | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function setActorIdentity($identity) { | public function setActorIdentity($identity) { | ||||
$this->setActorHash(PhabricatorHash::digestForIndex($identity)); | $this->setActorHash(PhabricatorHash::digestForIndex($identity)); | ||||
return parent::setActorIdentity($identity); | return parent::setActorIdentity($identity); | ||||
} | } | ||||
} | } |