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 final class PhabricatorFavoritesProfileMenuEngine extends PhabricatorProfileMenuE..
Decoded Output download
<?php
final class PhabricatorFavoritesProfileMenuEngine
extends PhabricatorProfileMenuEngine {
protected function isMenuEngineConfigurable() {
return true;
}
public function getItemURI($path) {
return "/favorites/menu/{$path}";
}
protected function getBuiltinProfileItems($object) {
$items = array();
$viewer = $this->getViewer();
$engines = PhabricatorEditEngine::getAllEditEngines();
$engines = msortv($engines, 'getQuickCreateOrderVector');
foreach ($engines as $engine) {
foreach ($engine->getDefaultQuickCreateFormKeys() as $form_key) {
$form_hash = PhabricatorHash::digestForIndex($form_key);
$builtin_key = "editengine.form({$form_hash})";
$properties = array(
'name' => null,
'formKey' => $form_key,
);
$items[] = $this->newItem()
->setBuiltinKey($builtin_key)
->setMenuItemKey(PhabricatorEditEngineProfileMenuItem::MENUITEMKEY)
->setMenuItemProperties($properties);
}
}
$items[] = $this->newDividerItem('tail');
$items[] = $this->newManageItem()
->setMenuItemProperty('name', pht('Edit Favorites'));
return $items;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorFavoritesProfileMenuEngine
extends PhabricatorProfileMenuEngine {
protected function isMenuEngineConfigurable() {
return true;
}
public function getItemURI($path) {
return "/favorites/menu/{$path}";
}
protected function getBuiltinProfileItems($object) {
$items = array();
$viewer = $this->getViewer();
$engines = PhabricatorEditEngine::getAllEditEngines();
$engines = msortv($engines, 'getQuickCreateOrderVector');
foreach ($engines as $engine) {
foreach ($engine->getDefaultQuickCreateFormKeys() as $form_key) {
$form_hash = PhabricatorHash::digestForIndex($form_key);
$builtin_key = "editengine.form({$form_hash})";
$properties = array(
'name' => null,
'formKey' => $form_key,
);
$items[] = $this->newItem()
->setBuiltinKey($builtin_key)
->setMenuItemKey(PhabricatorEditEngineProfileMenuItem::MENUITEMKEY)
->setMenuItemProperties($properties);
}
}
$items[] = $this->newDividerItem('tail');
$items[] = $this->newManageItem()
->setMenuItemProperty('name', pht('Edit Favorites'));
return $items;
}
}
Function Calls
None |
Stats
MD5 | b8becf750f810a520e9a8dcefb307cd0 |
Eval Count | 0 |
Decode Time | 84 ms |