.. _auto_php_curve_worker: *PHP CUSTOM CLASS TO COMPUTE CURVES* ==================================== Executes a user-supplied PHP class at runtime to compute and return one or more curves within a d3VIEW workflow. Instantiates the named class from inline source code, passes structured curve inputs to its `run()` method, and registers the returned curve outputs. Use this worker when custom curve logic cannot be expressed by standard workers and the author prefers PHP scripting. When to use ----------- Tagged: ``curve``, ``custom``, ``dynamic-class``, ``php``, ``runtime``, ``scripting``, ``user``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Class Name - class_name - text - PHPCurve - ✓ - Name of the PHP class to instantiate (e.g. `PHPCurve`); must exactly match the class keyword in the `class_data` definition below — default `PHPCurve` should be changed whenever a differently-named class is provided. * - Class Definition - class_data - textarea - — - ✓ - Full PHP source code containing the class definition; must declare the class named in `class_name` and implement a public `run($inputs)` method that receives the curve inputs array and returns curve output(s). * - Class Inputs - class_inputs - vector - — - - Repeatable list of curve input arguments passed as an array to the `run()` method; follows the d3VIEW CurveInput schema (see linked glossary) — leave empty only if the custom class requires no input curves. Disciplines ----------- - data.curve.transform - platform.workflow .. raw:: html
Auto-generated from platform schema. Worker id: php_curve_worker. Schema hash: 74bc1c3ff2ba. Hand-curated docs in workerexamples/ override this page when present.