public function doUnpublish()
    {
        if (!$this->canEdit()) {
            throw new ValidationException(_t('News.PublishPermissionFailure', 'No permission to publish or unpublish news item'));
        }
        $this->Live = false;
        $this->write();
    }
public function doUnpublish()
    {
        if (!$this->canEdit()) {
            throw new ValidationException(_t('News.PublishPermissionFailure', 'No permission to publish or unpublish news item'));
        }
        $this->Live = false;
        $this->write();
    }
public function doUnpublish ( ) { if ( ! $ this -> canEdit ( ) ) { throw new ValidationException ( _t ( 'News.PublishPermissionFailure' , 'No permission to publish or unpublish news item' ) ) ; } $ this -> Live = false ; $ this -> write ( ) ; }
Unpublishes an news item

@throws ValidationException
Unpublishes an news item