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 PhabricatorDaemonTasksTableView extends AphrontView { private $tasks..
Decoded Output download
<?php
final class PhabricatorDaemonTasksTableView extends AphrontView {
private $tasks;
private $noDataString;
public function setTasks(array $tasks) {
$this->tasks = $tasks;
return $this;
}
public function getTasks() {
return $this->tasks;
}
public function setNoDataString($no_data_string) {
$this->noDataString = $no_data_string;
return $this;
}
public function getNoDataString() {
return $this->noDataString;
}
public function render() {
$tasks = $this->getTasks();
$rows = array();
foreach ($tasks as $task) {
$rows[] = array(
$task->getID(),
$task->getTaskClass(),
$task->getLeaseOwner(),
$task->getLeaseExpires()
? phutil_format_relative_time($task->getLeaseExpires() - time())
: '-',
$task->getPriority(),
$task->getFailureCount(),
phutil_tag(
'a',
array(
'href' => '/daemon/task/'.$task->getID().'/',
'class' => 'button small button-grey',
),
pht('View Task')),
);
}
$table = new AphrontTableView($rows);
$table->setHeaders(
array(
pht('ID'),
pht('Class'),
pht('Owner'),
pht('Expires'),
pht('Priority'),
pht('Failures'),
'',
));
$table->setColumnClasses(
array(
'n',
'wide',
'',
'',
'n',
'n',
'action',
));
if (strlen($this->getNoDataString())) {
$table->setNoDataString($this->getNoDataString());
}
return $table;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorDaemonTasksTableView extends AphrontView {
private $tasks;
private $noDataString;
public function setTasks(array $tasks) {
$this->tasks = $tasks;
return $this;
}
public function getTasks() {
return $this->tasks;
}
public function setNoDataString($no_data_string) {
$this->noDataString = $no_data_string;
return $this;
}
public function getNoDataString() {
return $this->noDataString;
}
public function render() {
$tasks = $this->getTasks();
$rows = array();
foreach ($tasks as $task) {
$rows[] = array(
$task->getID(),
$task->getTaskClass(),
$task->getLeaseOwner(),
$task->getLeaseExpires()
? phutil_format_relative_time($task->getLeaseExpires() - time())
: '-',
$task->getPriority(),
$task->getFailureCount(),
phutil_tag(
'a',
array(
'href' => '/daemon/task/'.$task->getID().'/',
'class' => 'button small button-grey',
),
pht('View Task')),
);
}
$table = new AphrontTableView($rows);
$table->setHeaders(
array(
pht('ID'),
pht('Class'),
pht('Owner'),
pht('Expires'),
pht('Priority'),
pht('Failures'),
'',
));
$table->setColumnClasses(
array(
'n',
'wide',
'',
'',
'n',
'n',
'action',
));
if (strlen($this->getNoDataString())) {
$table->setNoDataString($this->getNoDataString());
}
return $table;
}
}
Function Calls
None |
Stats
MD5 | 6a7838fb7a0866da5571445554c3d9b1 |
Eval Count | 0 |
Decode Time | 82 ms |