当前位置: 首页>>代码示例>>PHP>>正文


PHP Package::__construct方法代码示例

本文整理汇总了PHP中Package::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Package::__construct方法的具体用法?PHP Package::__construct怎么用?PHP Package::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Package的用法示例。


在下文中一共展示了Package::__construct方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($release, $address, $desc, $doc)
 {
     parent::__construct($release, $address, $desc, $doc);
     $this->installed = $this->installed();
     $this->localPath = $this->localPath();
     $this->updateAvailable = $this->updateAvailable();
     $this->deleteLink = '&delete=' . $this->name;
 }
开发者ID:YesWiki,项目名称:yeswiki-extension-autoupdate,代码行数:8,代码来源:PackageExt.php

示例2: __construct

 public function __construct($release, $address, $desc, $doc)
 {
     parent::__construct($release, $address, $desc, $doc);
     $this->installed = true;
     $this->localPath = dirname(dirname(dirname(__DIR__)));
     $this->name = $this::CORE_NAME;
     $this->updateAvailable = $this->updateAvailable();
 }
开发者ID:YesWiki,项目名称:yeswiki-extension-autoupdate,代码行数:8,代码来源:PackageCore.php

示例3: __construct

 /**
  * Constructor.
  *
  * @param string|array $baseUrls Base asset URLs
  * @param string       $version  The package version
  * @param string       $format   The format used to apply the version
  */
 public function __construct($baseUrls = array(), $version = null, $format = null)
 {
     parent::__construct($version, $format);
     if (!is_array($baseUrls)) {
         $baseUrls = (array) $baseUrls;
     }
     $this->baseUrls = array();
     foreach ($baseUrls as $baseUrl) {
         $this->baseUrls[] = rtrim($baseUrl, '/');
     }
 }
开发者ID:sidibea,项目名称:castor,代码行数:18,代码来源:UrlPackage.php

示例4: __construct

 /**
  * Constructor.
  *
  * @param string $basePath The base path to be prepended to relative paths
  * @param string $version  The package version
  * @param string $format   The format used to apply the version
  */
 public function __construct($basePath = null, $version = null, $format = null)
 {
     parent::__construct($version, $format);
     if (!$basePath) {
         $this->basePath = '/';
     } else {
         if ('/' != $basePath[0]) {
             $basePath = '/' . $basePath;
         }
         $this->basePath = rtrim($basePath, '/') . '/';
     }
 }
开发者ID:guitarooman14,项目名称:hackazon,代码行数:19,代码来源:PathPackage.php

示例5: RuntimeException

 /**
  * Contsructor opens the file
  * @param location of the file
  * @param distribution the package is built for (used on version numbers)
  */
 function __construct($location = null, $distribution = '')
 {
     parent::__construct();
     if (!isset($this->location)) {
         return false;
     } else {
         $this->location = $location;
         $this->distribution = $distribution;
         if (is_resource($location) && get_resource_type($location) == 'stream') {
             $this->handle = $location;
         } else {
             $this->handle = @fopen($this->location, 'r');
             if (!$this->handle) {
                 throw new RuntimeException('Opening file: ' . $location . " failed\n");
             }
         }
     }
 }
开发者ID:nemein,项目名称:com_meego_obsconnector,代码行数:23,代码来源:Parser.php

示例6: __construct

 /**
  * Creates a new root package.
  *
  * @param RootPackageFile $packageFile The package file.
  * @param string          $installPath The absolute install path.
  */
 public function __construct(RootPackageFile $packageFile, $installPath)
 {
     parent::__construct($packageFile, $installPath);
 }
开发者ID:SenseException,项目名称:manager,代码行数:10,代码来源:RootPackage.php

示例7: __construct

 /**
  * Initialiser le paquet.
  * @param Webos $webos Le webos.
  * @param LocalRepository $repository Le depot sur lequel est le paquet.
  * @param string $name Le nom du paquet.
  */
 public function __construct(\lib\Webos $webos, LocalRepository $repository, $name)
 {
     //On appelle le constructeur du parent
     parent::__construct($webos, $repository, $name);
     $this->source = $repository->getSource() . '/packages/' . $name . '.xml';
 }
开发者ID:Tiger66639,项目名称:symbiose-raspberrypi,代码行数:12,代码来源:InstalledPackage.class.php

示例8:

 /**
  * Constructs a new dependency object
  * @param string name of the package
  * @param string constraint constraint to the version
  * @param string version of the package
  */
 function __construct($name = '', $constraint = '', $version = '')
 {
     parent::__construct($name, $version);
     $this->constraint = $constraint;
     $this->debug('New dependency object: ' . $this->name . '' . $this->constraint . ' ' . $this->version);
 }
开发者ID:nemein,项目名称:com_meego_obsconnector,代码行数:12,代码来源:Dependency.php

示例9: __construct

 public function __construct(Repository $repository, \lib\entities\PackageMetadata $metadata, $files)
 {
     parent::__construct($repository, $metadata);
     $this->files = $files;
 }
开发者ID:AICIDNN,项目名称:symbiose-website,代码行数:5,代码来源:InstalledPackage.class.php


注:本文中的Package::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。