FOFTable::publish
Publish or unpublish records
Signature
public function publish([integer|array
$cid = null,
[integer
$publish = 1,
[integer
$user_id = 0]]] )
Parameters
-
$cid
- The primary key value(s) of the item(s) to publish/unpublish
-
$publish
- 1 to publish an item, 0 to unpublish
-
$user_id
- The user ID of the user (un)publishing the item.
Returns
- boolean
- True on success, false on failure (e.g. record is locked)
Tasks
Line | Task |
---|---|
1737 | Rewrite this statment using IN. Check if it work in SQLServer and PostgreSQL |
1769 | should we check for its return value? |