/** * @deprecated */ public static function getByID($pkgID) { // this should go through the facade instead return \Concrete\Core\Support\Facade\Package::getByID($pkgID); }
public function package_installed($pkgID = 0) { $this->set('message', t('The package has been installed.')); $this->set('installedPKG', Package::getByID($pkgID)); }
/** * Get the package instance (or null if it's a core library). * * @return \Concrete\Core\Entity\Package|null */ public function getPackageObject() { return $this->pkgID ? PackageService::getByID($this->pkgID) : null; }