NAMESPACE: Bootstrap/Components/AppzioUiKit/Controls

Components/AppzioUiKit/Controls/uiKitLikeStar.php

public function uiKitLikeStar($liked,$action_like,$action_unlike,$height,$id)

Simple like / unlike star which works in async fashion. Provide controller methods for saving the like & unlike (these functions should have $this->no_output = true; set in order not to make the clien refresh.

parameters

$liked 1 or 2 whether the item is liked or not
$action_like Full path, ie Controller/like/$id
$action_unlike Full path, ie Controller/unlike/$id

variable

$liked
$action_like
$action_unlike
$height
$id