public function clearUnPublishJob()
    {
        // Cancel any in-progress unpublish job
        $job = $this->owner->UnPublishJob();
        if ($job && $job->exists()) {
            $job->delete();
        }
        $this->owner->UnPublishJobID = 0;
    }
public function clearUnPublishJob()
    {
        // Cancel any in-progress unpublish job
        $job = $this->owner->UnPublishJob();
        if ($job && $job->exists()) {
            $job->delete();
        }
        $this->owner->UnPublishJobID = 0;
    }
public function clearUnPublishJob ( ) { // Cancel any in-progress unpublish job $ job = $ this -> owner -> UnPublishJob ( ) ; if ( $ job && $ job -> exists ( ) ) { $ job -> delete ( ) ; } $ this -> owner -> UnPublishJobID = 0 ; }
Clears any existing unpublish job
Clears any existing unpublish job