System_Command
[ class tree: System_Command ] [ index: System_Command ] [ all elements ]

Source for file test.php

Documentation is available at test.php

  1. <?php
  2. require_once '../Command.php';
  3. $cmd = new System_Command();
  4. $xml '<?xml version="1.0"?>
  5. <doc>
  6.   <test val="foo"/>
  7. </doc>';
  8. $cmd->pushCommand('echo'$xml);
  9. $cmd->pushOperator('|');
  10. $cmd->pushCommand('xmllint''--format''-');
  11. if (System_Command::isError($result $cmd->execute())) {
  12.     echo $result->getMessage(' ' $result->getDebugInfo();
  13. }
  14. else {
  15.     echo $result;
  16. }
  17. ?>

Documentation generated on Mon, 11 Mar 2019 15:47:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.