JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • Stdout
  • Xml
 1 <?php
 2 /**
 3  * Part of the Joomla Framework Application Package
 4  *
 5  * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 6  * @license    GNU General Public License version 2 or later; see LICENSE
 7  */
 8 
 9 namespace Joomla\Application\Cli\Output;
10 
11 use Joomla\Application\Cli\CliOutput;
12 
13 /**
14  * Class Xml.
15  *
16  * @since  1.0
17  */
18 class Xml extends CliOutput
19 {
20     /**
21      * Write a string to standard output.
22      *
23      * @param   string   $text  The text to display.
24      * @param   boolean  $nl    True (default) to append a new line at the end of the output string.
25      *
26      * @return  void
27      *
28      * @since   1.0
29      * @throws  \RuntimeException
30      * @codeCoverageIgnore
31      */
32     public function out($text = '', $nl = true)
33     {
34         fwrite(STDOUT, $text . ($nl ? "\n" : null));
35     }
36 }
37 
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.