UAP 4 Documentation - Sweets

Welcome to UAP Docs - Sweets

Sweets Library


The Sweets Library allows users to Sweet(Like) content.

This Library can be used in Views.

use Libs\Sweets;

// Display total sweets (used outside of sweeted page)
echo Sweets::getTotalSweets($data['item_id'], 'Items', 'Items_All');

// Setup Location of Sweet
$sweet_url = "Items/".$data['item_id'];

// Display Sweet Button
echo Sweets::displaySweetsButton($data['item_id'], 'Items', $data['current_userID'], "0", $sweet_url);

// Display Sweets
echo Sweets::getSweets($data['item_id'], 'Forum_Topic');

- Can't find what your looking for? Please use Forum.

UAP 4 Documentation - Sweets

Title
Statistics
Last Reply
Forum Permissions
You cannot post in this forum.
You cannot moderate this forum.
You cannot administrate this forum.