It has to do with the use of sql_table() which has been with use since v2.0.
Which is correct?
Code: Select all
getTableList(){
return array('plugin_bob_mytable','plugin_bob_myothertable');
}
or
Code: Select all
getTableList(){
return array(sql_table('plugin_bob_mytable'),sql_table('plugin_bob_myothertable'));
}
If I assume lazy programming than the second would be the case but if I assume user-oriented "helpful" programming that has made assumptions of it's own then I should choose the first.
However neither option feels satisfactory to me as a good example of the way such data should be handled.
Regardless of my own minor niggle I still need to know the format that is expected in the return array.