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


PHP AbstractTest::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Class constructor
  *
  * @since   1.0
  * @param   array $list               Value to set for "B"
  * @param   mixed &$refTest           A referenced variable
  * @param   Iterator $classHintTest   An iterateable instance
  *                                    Two line comment test
  */
 public function __construct(array $list, $stuff, &$refTest = null, \Iterator $classHintTest = null)
 {
     parent::__construct($list);
     $this->stuff = $list;
     $this->pubVarB = $this;
     $this->currentDate = \DateTime::createFromFormat('U', time(), new \DateTimeZone('Europe/London'));
     if (extension_loaded('gd')) {
         $this->image = imagecreate(1, 1);
     }
     if (extension_loaded('curl')) {
         $curl = curl_init();
         curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($curl, CURLOPT_URL, 'http://localhost');
         curl_setopt($curl, CURLOPT_HEADER, 0);
         curl_exec($curl);
         $this->curl = $curl;
     }
     $this->jsonString = json_encode($this->currentDate);
 }
开发者ID:hassiumsoft,项目名称:hasscms-app-vendor,代码行数:28,代码来源:example.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct("Client Browser", "Current client " . $_SERVER['HTTP_USER_AGENT']);
 }
开发者ID:thermalpaste,项目名称:pydio-core,代码行数:4,代码来源:test.Client.php

示例3: __construct

 public function __construct()
 {
     parent::__construct("PHP APC extension", "Pydio framework loads a lot of PHP files at each query, and using a PHP accelerator is greatly recommanded.");
 }
开发者ID:floffel03,项目名称:pydio-core,代码行数:4,代码来源:test.PHP_APC.php

示例4: __construct

 public function __construct()
 {
     parent::__construct(self::$testKey, "You should enable php file_uploads parameter for uploading files with Pydio.");
 }
开发者ID:ad-m,项目名称:pydio-core,代码行数:4,代码来源:test.PHP_file_uploads.php

示例5: __construct

 public function __construct()
 {
     parent::__construct("Filesystem Plugin", "");
 }
开发者ID:rbrdevs,项目名称:pydio-core,代码行数:4,代码来源:test.fsAccess.php

示例6: __construct

 public function __construct()
 {
     parent::__construct("Pydio version", "Version : " . AJXP_VERSION);
 }
开发者ID:thermalpaste,项目名称:pydio-core,代码行数:4,代码来源:test.AJXPVersion.php

示例7: __construct

 public function __construct($name, \Closure $execute)
 {
     parent::__construct($name);
     $this->execute = $execute;
 }
开发者ID:lavoiesl,项目名称:php-benchmark,代码行数:5,代码来源:SimpleTest.php

示例8: __construct

 public function __construct($name, $cmd)
 {
     parent::__construct($name);
     $this->execute = $cmd;
 }
开发者ID:lavoiesl,项目名称:php-benchmark,代码行数:5,代码来源:CommandTest.php

示例9: __construct

 public function __construct()
 {
     parent::__construct("Zlib extension (ZIP)", "Extension enabled : " . (function_exists('gzopen') || function_exists('gzopen64') ? "1" : "0"));
 }
开发者ID:floffel03,项目名称:pydio-core,代码行数:4,代码来源:test.Zlib.php

示例10: __construct

 public function __construct()
 {
     parent::__construct("PHP operating system", "Current operating system " . PHP_OS);
 }
开发者ID:thermalpaste,项目名称:pydio-core,代码行数:4,代码来源:test.PHPOS.php

示例11: __construct

 public function __construct()
 {
     parent::__construct("PHP error level", PHPErrorLevel::error2string(error_reporting()));
 }
开发者ID:thermalpaste,项目名称:pydio-core,代码行数:4,代码来源:test.PHPErrorLevel.php


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