|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE topic |
| 3 | + SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd"> |
| 4 | +<topic |
| 5 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 6 | + xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd" |
| 7 | + title="Operation Helper" id="operation-helper"> |
| 8 | + |
| 9 | + <link-summary>Information about launching operations with the help of the helper</link-summary> |
| 10 | + <card-summary>Information about launching operations with the help of the helper</card-summary> |
| 11 | + <web-summary>Information about launching operations with the help of the helper</web-summary> |
| 12 | + |
| 13 | + <show-structure depth="2" /> |
| 14 | + |
| 15 | + <p> |
| 16 | + To quickly call operations from other code, you can use the <code>OperationHelper</code> helper function. |
| 17 | + </p> |
| 18 | + |
| 19 | + <chapter title="Execution of all" id="execution_of_all"> |
| 20 | + <p> |
| 21 | + This will execute any operations not performed earlier: |
| 22 | + </p> |
| 23 | + |
| 24 | + <code-block lang="php" src="operation_helper_all.php" include-lines="5-" /> |
| 25 | + |
| 26 | + <p> |
| 27 | + For example, |
| 28 | + </p> |
| 29 | + |
| 30 | + <code-block lang="bash" src="operations_helper.sh" /> |
| 31 | + </chapter> |
| 32 | + |
| 33 | + <chapter title="Performing operations in a folder" id="performing_operations_in_a_folder"> |
| 34 | + <p> |
| 35 | + This will execute all previously unexecuted operations in the specified folder: |
| 36 | + </p> |
| 37 | + |
| 38 | + <code-block lang="php" src="operation_helper_directory.php" include-lines="5-" /> |
| 39 | + |
| 40 | + <p> |
| 41 | + For example, |
| 42 | + </p> |
| 43 | + |
| 44 | + <code-block lang="bash" src="operations_helper.sh" include-lines="2-3" /> |
| 45 | + </chapter> |
| 46 | + |
| 47 | + <chapter title="Performing a specific operation" id="performing_a_specific_operation"> |
| 48 | + <warning> |
| 49 | + This will execute the defined operation file even if it was previously called. |
| 50 | + Be careful about calling it again. |
| 51 | + </warning> |
| 52 | + |
| 53 | + <code-block lang="php" src="operation_helper_file.php" include-lines="5-" /> |
| 54 | + |
| 55 | + <p> |
| 56 | + For example, |
| 57 | + </p> |
| 58 | + |
| 59 | + <code-block lang="bash" src="operations_helper.sh" include-lines="2" /> |
| 60 | + </chapter> |
| 61 | +</topic> |
0 commit comments