php.inc

  1. 8.0.x commands/core/outputformat/php.inc
  2. 6.x commands/core/outputformat/php.inc
  3. 7.x commands/core/outputformat/php.inc
  4. master commands/core/outputformat/php.inc

Classes

Namesort descending Description
drush_outputformat_php Output formatter 'php'

File

commands/core/outputformat/php.inc
View source
  1. <?php
  2. /**
  3. * Output formatter 'php'
  4. *
  5. * @param $data
  6. * The $data parameter is rendered as a serialized php string
  7. * @param $metadata
  8. *
  9. * Code:
  10. *
  11. */
  12. class drush_outputformat_php extends drush_outputformat {
  13. function format($input, $metadata) {
  14. return serialize($input);
  15. }
  16. }