I modified the publish-function of my sub-controller as follows
/**
* publish function.
*
* @access public
* @return void
*/
public function publish()
{
$app = JFactory::getApplication();
$jinput = JFactory::getApplication()->input;
$ids = $jinput->get('cid', '', 'array');
$task = $this->getTask();
foreach($ids as $id)
{
// do fancy stuff
}
}
Now I really would like to change the status of some items (-> $ids) via an CLI-script.
Is it possible to call this controller, get the method "publish" and submit a set of ids and, assigned to this, a task (publish, unpublish, trash, ...)?