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 PhabricatorCustomFieldNumericIndexStorage extends PhabricatorCusto..
Decoded Output download
<?php
abstract class PhabricatorCustomFieldNumericIndexStorage
extends PhabricatorCustomFieldIndexStorage {
protected function getConfiguration() {
return array(
self::CONFIG_COLUMN_SCHEMA => array(
'indexKey' => 'bytes12',
'indexValue' => 'sint64',
),
self::CONFIG_KEY_SCHEMA => array(
'key_join' => array(
'columns' => array('objectPHID', 'indexKey', 'indexValue'),
),
'key_find' => array(
'columns' => array('indexKey', 'indexValue'),
),
),
) + parent::getConfiguration();
}
public function formatForInsert(AphrontDatabaseConnection $conn) {
return qsprintf(
$conn,
'(%s, %s, %d)',
$this->getObjectPHID(),
$this->getIndexKey(),
$this->getIndexValue());
}
public function getIndexValueType() {
return 'int';
}
}
?>
Did this file decode correctly?
Original Code
<?php
abstract class PhabricatorCustomFieldNumericIndexStorage
extends PhabricatorCustomFieldIndexStorage {
protected function getConfiguration() {
return array(
self::CONFIG_COLUMN_SCHEMA => array(
'indexKey' => 'bytes12',
'indexValue' => 'sint64',
),
self::CONFIG_KEY_SCHEMA => array(
'key_join' => array(
'columns' => array('objectPHID', 'indexKey', 'indexValue'),
),
'key_find' => array(
'columns' => array('indexKey', 'indexValue'),
),
),
) + parent::getConfiguration();
}
public function formatForInsert(AphrontDatabaseConnection $conn) {
return qsprintf(
$conn,
'(%s, %s, %d)',
$this->getObjectPHID(),
$this->getIndexKey(),
$this->getIndexValue());
}
public function getIndexValueType() {
return 'int';
}
}
Function Calls
None |
Stats
MD5 | d49b2637a424c2256dbb14b0fa2278c6 |
Eval Count | 0 |
Decode Time | 122 ms |