Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php abstract class PhabricatorSettingsPanelGroup extends Phobject { private $panels;..
Decoded Output download
<?php
abstract class PhabricatorSettingsPanelGroup extends Phobject {
private $panels;
abstract public function getPanelGroupName();
protected function getPanelGroupOrder() {
return 1000;
}
final public function getPanelGroupOrderVector() {
return id(new PhutilSortVector())
->addInt($this->getPanelGroupOrder())
->addString($this->getPanelGroupName());
}
final public function getPanelGroupKey() {
return $this->getPhobjectClassConstant('PANELGROUPKEY');
}
final public static function getAllPanelGroups() {
$groups = id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->setUniqueMethod('getPanelGroupKey')
->execute();
return msortv($groups, 'getPanelGroupOrderVector');
}
final public static function getAllPanelGroupsWithPanels() {
$groups = self::getAllPanelGroups();
$panels = PhabricatorSettingsPanel::getAllPanels();
$panels = mgroup($panels, 'getPanelGroupKey');
foreach ($groups as $key => $group) {
$group->panels = idx($panels, $key, array());
}
return $groups;
}
public function getPanels() {
return $this->panels;
}
}
?>
Did this file decode correctly?
Original Code
<?php
abstract class PhabricatorSettingsPanelGroup extends Phobject {
private $panels;
abstract public function getPanelGroupName();
protected function getPanelGroupOrder() {
return 1000;
}
final public function getPanelGroupOrderVector() {
return id(new PhutilSortVector())
->addInt($this->getPanelGroupOrder())
->addString($this->getPanelGroupName());
}
final public function getPanelGroupKey() {
return $this->getPhobjectClassConstant('PANELGROUPKEY');
}
final public static function getAllPanelGroups() {
$groups = id(new PhutilClassMapQuery())
->setAncestorClass(__CLASS__)
->setUniqueMethod('getPanelGroupKey')
->execute();
return msortv($groups, 'getPanelGroupOrderVector');
}
final public static function getAllPanelGroupsWithPanels() {
$groups = self::getAllPanelGroups();
$panels = PhabricatorSettingsPanel::getAllPanels();
$panels = mgroup($panels, 'getPanelGroupKey');
foreach ($groups as $key => $group) {
$group->panels = idx($panels, $key, array());
}
return $groups;
}
public function getPanels() {
return $this->panels;
}
}
Function Calls
None |
Stats
MD5 | c65b7a329ecf45d34447a296004f3831 |
Eval Count | 0 |
Decode Time | 103 ms |