[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 abstract class PhabricatorCustomFieldStringIndexStorage 4 extends PhabricatorCustomFieldIndexStorage { 5 6 public function getConfiguration() { 7 return array( 8 self::CONFIG_COLUMN_SCHEMA => array( 9 'indexKey' => 'bytes12', 10 'indexValue' => 'sort', 11 ), 12 self::CONFIG_KEY_SCHEMA => array( 13 'key_join' => array( 14 'columns' => array('objectPHID', 'indexKey', 'indexValue(64)'), 15 ), 16 'key_find' => array( 17 'columns' => array('indexKey', 'indexValue(64)'), 18 ), 19 ), 20 ) + parent::getConfiguration(); 21 } 22 23 public function formatForInsert(AphrontDatabaseConnection $conn) { 24 return qsprintf( 25 $conn, 26 '(%s, %s, %s)', 27 $this->getObjectPHID(), 28 $this->getIndexKey(), 29 $this->getIndexValue()); 30 } 31 32 public function getIndexValueType() { 33 return 'string'; 34 } 35 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |