本文整理匯總了PHP中Phing::getPhingVersion方法的典型用法代碼示例。如果您正苦於以下問題:PHP Phing::getPhingVersion方法的具體用法?PHP Phing::getPhingVersion怎麽用?PHP Phing::getPhingVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Phing
的用法示例。
在下文中一共展示了Phing::getPhingVersion方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doReport
/**
* Print a report to the given stream.
*
* @param PrintStream $out the stream to print the report to.
*/
public static function doReport(PrintStream $out)
{
$out->println(str_pad('Phing diagnostics report', 79, "-", STR_PAD_BOTH));
self::header($out, "Version");
$out->println(Phing::getPhingVersion());
self::header($out, "Project properties");
self::doReportProjectProperties($out);
self::header($out, "System properties");
self::doReportSystemProperties($out);
self::header($out, "PHING_HOME/vendor package listing");
self::doReportPhingVendorLibraries($out);
self::header($out, "COMPOSER_HOME/vendor package listing");
self::doReportComposerSystemLibraries($out);
self::header($out, "Tasks availability");
self::doReportTasksAvailability($out);
self::header($out, "Temp dir");
self::doReportTempDir($out);
}
示例2: getPhingVersion
/**
* Get the minimum required phing version
* @return string
*/
public function getPhingVersion()
{
if ($this->phingVersion === null) {
$this->setPhingVersion(Phing::getPhingVersion());
}
return $this->phingVersion;
}
示例3: input_version
function input_version(AgaviOptionParser $parser, $name, $arguments, $scriptArguments)
{
$GLOBALS['OUTPUT']->write('Agavi project configuration system, script version $Id: agavi.php 4667 2011-05-20 12:34:58Z david $' . PHP_EOL);
$GLOBALS['OUTPUT']->write(Phing::getPhingVersion() . PHP_EOL);
exit(0);
}