Reports API

With reports API you can generate a link or button, depending on the classes that you are using, that will allow users to report an item.

report mod

Report modal.


API example

jimport('oniscore.report'); //import reports libraries

$reportsHTML  = onisReport::report((int)$petition->id, 'petition', 'btn btn-xs btn-default', false, CCOMPONENT);

Generate the HTML code:

onisReport::report($itemid, $item, $class = NULL, $title = TRUE, $component);
  • $itemid - unique, numerical item id;
  • $item - unique item name;
  • $class - css classes for the button;
  • $title - if true, show button title;
  • $component - component name;

You can change HTML code here:

components/component_name/templates/default/report.mod.php

When reporting an item, users have the option to write the reason why they are reporting the item.


Backend

report backend

 On the backend the administrator can see the list of reports for every component as long with some details of the report.

  • reason - reason of the report, can be empty;
  • item - name of the reported item;
  • user - name of the user that reported the item;
  • date - date when the item was reported;
  • status - current status of the report, can be solved(green) or unsolved(orange) and also from here the report can be removed(red);
  • id - unique, numerical report id;

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries.
Onis is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Onis does not sell it's products on 3rd party sites. Any website offering Onis products for sale are not licensed versions and should be considered a scam. Never download our products from file sharing websites like rapidshare, torrents or warez forums. We have received reports of malicious versions of our software containing viruses, extra code, and even once installed, delete your database, steal sensitive information such as passwords, and credit card information. There is only one place to get the full and safe licensed versions of our software and you're looking at it! Enjoy.