コード例 #1
0
ファイル: Package.php プロジェクト: ppiedaderawnet/concrete5
 /**
  * @deprecated
  */
 public static function getByID($pkgID)
 {
     // this should go through the facade instead
     return \Concrete\Core\Support\Facade\Package::getByID($pkgID);
 }
コード例 #2
0
ファイル: install.php プロジェクト: seebaermichi/concrete5
 public function package_installed($pkgID = 0)
 {
     $this->set('message', t('The package has been installed.'));
     $this->set('installedPKG', Package::getByID($pkgID));
 }
コード例 #3
0
ファイル: Library.php プロジェクト: ppiedaderawnet/concrete5
 /**
  * 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;
 }