API docs     >     General     >     Comments

Comments->setStatus

Description

setStatus ( $status = false, $autostatus = false )
Sets commenting on the Object to allowed / closed

Parameters

$status
bool
TRUE if commenting is allowed or FALSE if comments are closed
$autostatus
bool
(optional) TRUE if the commenting auto-close time-interval should be reset

Returns

int
ERROR_NONE on success or ERROR_COMMENTS_NO_MOD_RIGHTS if moderator permissions are missing