Page MenuHomestyx hydra

PhabricatorAuthMessageType.php
No OneTemporary

PhabricatorAuthMessageType.php

<?php
abstract class PhabricatorAuthMessageType
extends Phobject {
final public function getMessageTypeKey() {
return $this->getPhobjectClassConstant('MESSAGEKEY', 64);
}
final public static function getAllMessageTypes() {
return id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->setUniqueMethod('getMessageTypeKey')
->execute();
}
final public static function newFromKey($key) {
$types = self::getAllMessageTypes();
if (empty($types[$key])) {
throw new Exception(
pht(
'No message type exists with key "%s".',
$key));
}
return clone $types[$key];
}
abstract public function getDisplayName();
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Feb 4, 3:16 AM (6 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
711291
Default Alt Text
PhabricatorAuthMessageType.php (707 B)

Event Timeline