concrete/src/Marketplace/Marketplace.php
public static function checkPackageUpdates()
    {
        $em = \ORM::entityManager();
        $items = self::getAvailableMarketplaceItems(false);
        foreach ($items as $i) {
            $p = Package::getByHandle($i->getHandle());
            if (is_object($p)) {
                /**
                 * @var $p \Concrete\Core\Entity\Package
                 */
                $p->setPackageAvailableVersion($i->getVersion());
                $em->persist($p);
            }
        }
        $em->flush();
    }
public static function checkPackageUpdates()
    {
        $em = \ORM::entityManager();
        $items = self::getAvailableMarketplaceItems(false);
        foreach ($items as $i) {
            $p = Package::getByHandle($i->getHandle());
            if (is_object($p)) {
                /**
                 * @var $p \Concrete\Core\Entity\Package
                 */
                $p->setPackageAvailableVersion($i->getVersion());
                $em->persist($p);
            }
        }
        $em->flush();
    }
public static function checkPackageUpdates ( ) { $ em = \ ORM :: entityManager ( ) ; $ items = self :: getAvailableMarketplaceItems ( false ) ; foreach ( $ items as $ i ) { $ p = Package :: getByHandle ( $ i -> getHandle ( ) ) ; if ( is_object ( $ p ) ) { /**
                 * @var $p \Concrete\Core\Entity\Package
                 */ $ p -> setPackageAvailableVersion ( $ i -> getVersion ( ) ) ; $ em -> persist ( $ p ) ; } } $ em -> flush ( ) ; }
Runs through all packages on the marketplace, sees if they're installed here, and updates the available version number for them.
Runs through all packages on the marketplace sees if they re installed here and updates the available version number for them .