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 min ago
1 day 3 hours ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 9 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 6 hours ago