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 checkin 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
$state
The publishing state. eg. [0 = unpublished, 1 = published]