Class yeesoft\comments\components\CommentsHelper

Inheritanceyeesoft\comments\components\CommentsHelper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getCacheProperties() Generate settings for comments caching yeesoft\comments\components\CommentsHelper
getReplyConfig() Generate config for comment's reply yeesoft\comments\components\CommentsHelper
setCookies() Set cookies using associative array yeesoft\comments\components\CommentsHelper

Method Details

getCacheProperties() public static method

Generate settings for comments caching

public static array getCacheProperties ( $model, $model_id '', $duration 3600 )
$model string

Comment's model name

$model_id int

Comment's model id

$duration int
getReplyConfig() public static method

Generate config for comment's reply

public static array getReplyConfig ( yeesoft\comments\models\Comment $comment )
$comment yeesoft\comments\models\Comment
setCookies() public static method

Set cookies using associative array

public static void setCookies ( array $cookies )
$cookies array

Cookies to set