Model/Sync/Automation.php
private function checkCampignEnrolmentActive($programId, $websiteId)
    {
        //program is not set
        if (!$programId) {
            return false;
        }
        $client = $this->helper->getWebsiteApiClient($websiteId);
        $program = $client->getProgramById($programId);
        //program status
        if (isset($program->status)) {
            $this->programStatus = $program->status;
        }
        if (isset($program->status) && $program->status == 'Active') {
            return true;
        }

        return false;
    }
private function checkCampignEnrolmentActive($programId, $websiteId)
    {
        //program is not set
        if (!$programId) {
            return false;
        }
        $client = $this->helper->getWebsiteApiClient($websiteId);
        $program = $client->getProgramById($programId);
        //program status
        if (isset($program->status)) {
            $this->programStatus = $program->status;
        }
        if (isset($program->status) && $program->status == 'Active') {
            return true;
        }

        return false;
    }
private function checkCampignEnrolmentActive ( $ programId , $ websiteId ) { //program is not set if ( ! $ programId ) { return false ; } $ client = $ this -> helper -> getWebsiteApiClient ( $ websiteId ) ; $ program = $ client -> getProgramById ( $ programId ) ; //program status if ( isset ( $ program -> status ) ) { $ this -> programStatus = $ program -> status ; } if ( isset ( $ program -> status ) && $ program -> status == 'Active' ) { return true ; } return false ; }
Program check if is valid and active.

@param int $programId
@param int $websiteId

@return bool
@throws \Exception
Program check if is valid and active .