mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- Added method rowNumber to controller system/Filters
- Fixed JSs to count the number of record in InfoCenter and to send messages
This commit is contained in:
@@ -392,4 +392,21 @@ class Filters extends VileSci_Controller
|
||||
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($json));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function rowNumber()
|
||||
{
|
||||
$json = new stdClass();
|
||||
|
||||
$dataset = $_SESSION[self::SESSION_NAME]['dataset'];
|
||||
|
||||
if (is_array($dataset))
|
||||
{
|
||||
$json->rowNumber = count($dataset);
|
||||
}
|
||||
|
||||
$this->output->set_content_type('application/json')->set_output(json_encode($json));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user