45 $result = parent::toString();
48 $force_index_hint =
'';
49 $ignore_index_hint =
'';
50 foreach($this->index_hints_list as $index_hint)
52 $index_hint_type = $index_hint->getIndexHintType();
53 if($index_hint_type ==
'USE')
55 $use_index_hint .= $index_hint->getIndexName() .
', ';
57 else if($index_hint_type ==
'FORCE')
59 $force_index_hint .= $index_hint->getIndexName() .
', ';
61 else if($index_hint_type ==
'IGNORE')
63 $ignore_index_hint .= $index_hint->getIndexName() .
', ';
66 if($use_index_hint !=
'')
68 $result .=
' USE INDEX (' . substr($use_index_hint, 0, -2) .
') ';
70 if($force_index_hint !=
'')
72 $result .=
' FORCE INDEX (' . substr($force_index_hint, 0, -2) .
') ';
74 if($ignore_index_hint !=
'')
76 $result .=
' IGNORE INDEX (' . substr($ignore_index_hint, 0, -2) .
') ';
__construct($name, $alias=NULL, $index_hints_list)