Page MenuHomestyx hydra

ManiphestNameIndex.php
No OneTemporary

ManiphestNameIndex.php

<?php
/**
* Denormalizes object names to support queries which need to be ordered or
* grouped by things like projects.
*/
final class ManiphestNameIndex extends ManiphestDAO {
protected $indexedObjectPHID;
protected $indexedObjectName;
public function getConfiguration() {
return array(
self::CONFIG_TIMESTAMPS => false,
) + parent::getConfiguration();
}
public static function updateIndex($phid, $name) {
$table = new ManiphestNameIndex();
$conn_w = $table->establishConnection('w');
queryfx(
$conn_w,
'INSERT INTO %T (indexedObjectPHID, indexedObjectName) VALUES (%s, %s)
ON DUPLICATE KEY UPDATE indexedObjectName = VALUES(indexedObjectName)',
$table->getTableName(),
$phid,
$name);
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Feb 4, 12:23 PM (1 d, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
611967
Default Alt Text
ManiphestNameIndex.php (774 B)

Event Timeline