45 $result = parent::toString();
47 $index_hint_string =
'';
48 $indexTypeList = array(
'USE' => 1,
'FORCE' => 1);
49 foreach($this->index_hints_list as $index_hint)
51 $index_hint_type = $index_hint->getIndexHintType();
52 if(isset($indexTypeList[$index_hint_type]))
54 $index_hint_string .=
'INDEX(' . $index_hint->getIndexName() .
'), ';
57 if($index_hint_string !=
'')
59 $result .=
' WITH(' . substr($index_hint_string, 0, -2) .
') ';
__construct($name, $alias=NULL, $index_hints_list)