Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:exphelpexamples

Generate the reference examples of the help below doc/eng-us/examples/ from the code: template operators and functions, fetch functions, module views, policies, INI settings, datatypes, workflow events, cronjobs…

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/exphelpexamples.md

On this page

exp:exphelpexamples

Generate the reference examples of the help below doc/eng-us/examples/ from the code: template operators and functions, fetch functions, module views, policies, INI settings, datatypes, workflow events, cronjobs, console commands and extension points.

Script bin/php/exphelpexamples.php, code in kernel/private/classes/commands/exphelpexamples.php. Run it from the installation root, as the user the web server runs as:

./console exp:exphelpexamples --help
./console exp:help:examples --help
php bin/php/exphelpexamples.php --help

Help text

The generated reference examples of the help (doc/eng-us/examples/)

./console exp:help:examples                      write the pages of every area (only changed files are written)
./console exp:help:examples --area=datatypes     only this area (repeat with a comma: --area=datatypes,cronjobs)
./console exp:help:examples --check              compare only: exit 1 when a page is missing, different or stale
./console exp:help:examples --list               the areas and how many pages each has
./console exp:help:examples --language=ger-de    the same pages in a translation (doc/ger-de/beispiele/), with
                                                 their entries in doc/ger-de/.paths.json
./console exp:help:examples --language=ger-de --worklist=var/tmp/todo.json
                                                 also write the source texts that have no translation yet

A translation reads its text from doc/<language>/.examples/: strings.json (the fixed text of the pages) and
descriptions/*.json (the comments and descriptions quoted from the sources, by item). A text without a
translation is written in English and counted as untranslated.

The pages are read from the git-tracked sources of this installation (the template autoload files,
function_definition.php, module.php, operation_definition.php, the shipped INI files, the datatype and
workflow event classes, cronjob.ini and the command classes). The same sources always give the same pages.
Only pages marked "generated: exp:help:examples" are replaced or removed; nothing else below doc/ is
touched. Run "./console exp:help index" afterwards to rebuild the help index.
Exit code: 0 fine, 1 --check found differences, 2 error.

Options

OptionValueHelp
--arearequiredOnly these areas, comma separated (template-operators, template-functions, fetch-functions, module-views, policies, ini-settings, datatypes, workflow-events, cronjobs, commands, extension-points)
--checkCompare the generated pages with the files and change nothing; exit 1 on a difference
--listList the areas with their page counts
--outrequiredThe output directory relative to the installation root (default doc/eng-us/examples, or the translation's directory)
--languagerequiredWrite the pages in a translation: a language directory below doc/ (ger-de); default the English original
--worklistrequiredWith --language: write the source texts without a translation to this file, as a description catalogue to fill in

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/exphelpexamples.php, kernel/private/classes/commands/exphelpexamples.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x