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 PhabricatorPhurlURLDatasource extends PhabricatorTypeaheadDatasource ..
Decoded Output download
<?php
final class PhabricatorPhurlURLDatasource
extends PhabricatorTypeaheadDatasource {
public function getBrowseTitle() {
return pht('Browse Phurl URLs');
}
public function getPlaceholderText() {
return pht('Select a phurl...');
}
public function getDatasourceApplicationClass() {
return 'PhabricatorPhurlApplication';
}
public function loadResults() {
$query = id(new PhabricatorPhurlURLQuery());
$urls = $this->executeQuery($query);
$results = array();
foreach ($urls as $url) {
$result = id(new PhabricatorTypeaheadResult())
->setDisplayName($url->getName())
->setName($url->getName()." ".$url->getAlias())
->setPHID($url->getPHID())
->setAutocomplete('(('.$url->getAlias().'))')
->addAttribute($url->getLongURL());
$results[] = $result;
}
return $this->filterResultsAgainstTokens($results);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorPhurlURLDatasource
extends PhabricatorTypeaheadDatasource {
public function getBrowseTitle() {
return pht('Browse Phurl URLs');
}
public function getPlaceholderText() {
return pht('Select a phurl...');
}
public function getDatasourceApplicationClass() {
return 'PhabricatorPhurlApplication';
}
public function loadResults() {
$query = id(new PhabricatorPhurlURLQuery());
$urls = $this->executeQuery($query);
$results = array();
foreach ($urls as $url) {
$result = id(new PhabricatorTypeaheadResult())
->setDisplayName($url->getName())
->setName($url->getName()." ".$url->getAlias())
->setPHID($url->getPHID())
->setAutocomplete('(('.$url->getAlias().'))')
->addAttribute($url->getLongURL());
$results[] = $result;
}
return $this->filterResultsAgainstTokens($results);
}
}
Function Calls
None |
Stats
MD5 | 02e3dc4aafa3a7994c6b8be899c5189e |
Eval Count | 0 |
Decode Time | 96 ms |