Method to set the publishing state for a row or list of rows in the database table. The method respects checked out rows by other users and will attempt to check-in rows that it can after adjustments are made.
Signature
public function publish([mixed
$pks = null,
[integer
$state = 1,
[integer
$userId = 0]]] )
Parameters
$pks
An optional array of primary key values to update. If not set the instance property value is used.
$state
The publishing state. eg. [0 = unpublished, 1 = published]