/**
  * Checks if the table arguments have changed
  * @param zibo\library\html\table\ExtendedTable $table
  * @param int $page The current page
  * @param int $rowsPerPage Number or rows to display on each page
  * @param string $orderMethod Name of the order method to use
  * @param string $orderDirection Name of the order direction
  * @param string $searchQuery Value for the search query
  * @return boolean
  */
 protected function isTableChanged(ExtendedTable $table, &$page, &$rowsPerPage, &$orderMethod, &$orderDirection, &$searchQuery)
 {
     $isTableChanged = false;
     if ($table->getPaginationOptions()) {
         if ($table->getPage() != $page) {
             $isTableChanged = true;
             $page = $table->getPage();
         }
         if ($table->getRowsPerPage() != $rowsPerPage) {
             $isTableChanged = true;
             $rowsPerPage = $table->getRowsPerPage();
             $page = 1;
         }
     }
     if ($table->hasOrderMethods()) {
         if ($table->getOrdermethod() != $orderMethod) {
             $isTableChanged = true;
             $orderMethod = $table->getOrderMethod();
         }
         if ($table->getOrderDirection() != $orderDirection) {
             $isTableChanged = true;
             $orderDirection = $table->getOrderDirection();
         }
     }
     if ($table->hasSearch() && $table->getSearchQuery() != $searchQuery) {
         $isTableChanged = true;
         $searchQuery = $table->getSearchQuery();
         $page = 1;
     }
     return $isTableChanged;
 }