[ticket/12138] Add methods for attachment manage functionality.

PHPBB3-12138
[ticket/12138] Replace old code and generate pagination using filetime limit.

PHPBB3-12138