本文整理汇总了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);
}
示例2: __construct
public function __construct()
{
parent::__construct("Client Browser", "Current client " . $_SERVER['HTTP_USER_AGENT']);
}
示例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.");
}
示例4: __construct
public function __construct()
{
parent::__construct(self::$testKey, "You should enable php file_uploads parameter for uploading files with Pydio.");
}
示例5: __construct
public function __construct()
{
parent::__construct("Filesystem Plugin", "");
}
示例6: __construct
public function __construct()
{
parent::__construct("Pydio version", "Version : " . AJXP_VERSION);
}
示例7: __construct
public function __construct($name, \Closure $execute)
{
parent::__construct($name);
$this->execute = $execute;
}
示例8: __construct
public function __construct($name, $cmd)
{
parent::__construct($name);
$this->execute = $cmd;
}
示例9: __construct
public function __construct()
{
parent::__construct("Zlib extension (ZIP)", "Extension enabled : " . (function_exists('gzopen') || function_exists('gzopen64') ? "1" : "0"));
}
示例10: __construct
public function __construct()
{
parent::__construct("PHP operating system", "Current operating system " . PHP_OS);
}
示例11: __construct
public function __construct()
{
parent::__construct("PHP error level", PHPErrorLevel::error2string(error_reporting()));
}