phpBB2::Simple - API for phpBB2
This document describes version 0.04 of phpBB2::Simple (from Perl distribution phpBB2-Simple), released on 2017-07-10.
I know, phpBB2 is beyond ancient (2007 and earlier), but our intranet board still runs it and some things are more convenient to do via CLI script than via web-based administration panel.
Usage:
add_user_to_groups(%args) -> [status, msg, result, meta]
Add a user to one or more groups.
This function is not exported.
Arguments ('*' denotes required arguments):
db_dsn* => str
db_password* => str
db_user* => str
group* => array[str]
user* => str
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
delete_user_from_all_forum_moderators(%args) -> [status, msg, result, meta]
Delete a user from being moderator in all forums.
delete_user_from_groups(%args) -> [status, msg, result, meta]
Delete a user from one or more groups.
list_group_members(%args) -> [status, msg, result, meta]
group* => str
list_groups(%args) -> [status, msg, result, meta]
detail => bool
Returned detailed record for each item instead of just ID.
list_user_groups(%args) -> [status, msg, result, meta]
List groups which user belongs to.
list_users(%args) -> [status, msg, result, meta]
active => bool
Only list active users.
level => str
Only list users having certain level.
Please visit the project's homepage at https://metacpan.org/release/phpBB2-Simple.
Source repository is at https://github.com/perlancar/perl-phpBB2-Simple.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=phpBB2-Simple
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017, 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install phpBB2::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm phpBB2::Simple
CPAN shell
perl -MCPAN -e shell install phpBB2::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.