Each list object in ISPConfig is based on the class listform_actions. The listform actions can be found in interface/lib/classes/listform_actions.inc.php file. This class contains a function named getQueryString() which returns the sql string that is used to display the list. To show lists with a more complex sql syntax, you can override the function getQueryString() in your custom list file.
Example:
Code:
$app->load('listform_actions');
class list_action extends listform_actions {
function getQueryString(){
$my_sql_query = "SELECT * FROM a,b WHERE ......";
return $my_sql_query;
}
}
$list = new list_action;
$list->onLoad();
Recent comments
1 day 6 hours ago
1 day 6 hours ago
1 day 11 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 17 min ago
2 days 6 hours ago
2 days 10 hours ago
2 days 12 hours ago