FOFModel::publish
Toggles the published state of one or several items
Signature
public function publish([integer
$publish = 1,
[integer
$user = null]] )
Parameters
-
$publish
- The publishing state to set (e.g. 0 is unpublished)
-
$user
- The user ID performing this action
Returns
- boolean
- True on success