added: get data class
modified: pagination now is correctly integrated to PHP 5