protected function _actionCommentstatus($context)
    {
        $data = $context->data;
        $this->getItem()->openToComment = (bool) $data->status;
    }
protected function _actionCommentstatus($context)
    {
        $data = $context->data;
        $this->getItem()->openToComment = (bool) $data->status;
    }
protected function _actionCommentstatus ( $ context ) { $ data = $ context -> data ; $ this -> getItem ( ) -> openToComment = ( bool ) $ data -> status ; }
Toggles comment status.

@param AnCommandContext $context Context parameter
Toggles comment status .