Warning: file_get_contents(documentation/articles/samplesminiappminiapp.xml.html): failed to open stream: No such file or directory in /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php on line 90

Warning: file_get_contents(documentation/articles/samplesminiappminiapp.xml.html): failed to open stream: No such file or directory in /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php on line 90

Warning: Cannot modify header information - headers already sent by (output started at /home/norejdls/sites/ns-xml/www/lib/ns-php/ns/ui/tab.5.php:90) in /home/norejdls/sites/ns-xml/www/index.php on line 124
ns-xml project home ~ XSLT documentation
  / languages / php.html

Table of content

Variables

Templates


Details

Variables

php.open="'<?php'"

Default value: '<?php'
php.close="'?>'"

Default value: '?>'

Templates


PHP comment blcck
  1. content
    Default value: .

Escape a string literal
  1. value
  2. quoteChar
    Value to escape. Assumes the given parameter does not already contains any escaped character
    Default value: "'"
  3. evaluate
    Enclosing quotes character
    Default value: false()

PHP code block
  1. indent
    Default value: true()
  2. content
  1. name
  2. context
  3. content
  4. indent
    Default value: true()

PHP function definition
  1. name
  2. args
  3. content
  4. indent
    Default value: true()
php.method(name, args, visibility="'public'", type, static="false()", content, indent="true()")

PHP class method definition
  1. name
  2. args
  3. visibility
    Method visibility ('public', 'protected' or 'private')
    Default value: 'public'
  4. type
    Method type ('abstract', 'interface' or nothing). If 'abstract' or 'interface' is set, the method in declared without body.
  5. static
    Default value: false()
  6. content
  7. indent
    Default value: true()
php.class(name, type="'class'", extends, implements, content, indent="true()")

PHP Interface and class definition
  1. name
  2. type
    Class type ('class', 'abstract' or 'interface')
    Default value: 'class'
  3. extends
  4. implements
  5. content
  6. indent
    Default value: true()
php.namespace(name, content, brackets="true()", forceDeclaration="false()", indent="false()")

PHP namespace
  1. name
    Namespace name. If empty, this template has no effect
  2. content
    Namespace code
  3. brackets
    Use curly brackets syntax or ';'
    Default value: true()
  4. forceDeclaration
    Force declaration even if namespace name is empty
    Default value: false()
  5. indent
    Default value: false()