mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9472 201d5d3c-b55e-5fd7-737f-ddc643e51545
25 lines
No EOL
777 B
PHP
25 lines
No EOL
777 B
PHP
<?php
|
|
|
|
class CubridTableWithHint extends Table {
|
|
var $name;
|
|
var $alias;
|
|
var $index_hints_list;
|
|
|
|
function CubridTableWithHint($name, $alias = NULL, $index_hints_list){
|
|
parent::Table($name, $alias);
|
|
$this->index_hints_list = $index_hints_list;
|
|
}
|
|
|
|
function getIndexHintString(){
|
|
$result = '';
|
|
foreach($this->index_hints_list as $index_hint){
|
|
$result .= $this->alias . '.' . $index_hint->getIndexName()
|
|
. ($index_hint->getIndexHintType() == 'FORCE' ? '(+)' : '') . ', ';
|
|
|
|
}
|
|
$result = substr($result, 0, -2);
|
|
return $result;
|
|
}
|
|
}
|
|
|
|
?>
|