Task/Generate/ComponentCollector.php
protected function applyComponentDataPropertyProcessing($property_name, &$property_info, &$component_data_local) {
    if (!isset($property_info['processing'])) {
      // No processing: nothing to do.
      return;
    }

    if (empty($component_data_local[$property_name]) && empty($property_info['process_empty'])) {
      // Don't apply to an empty property, unless forced to.
      return;
    }

    $processing_callback = $property_info['processing'];

    $processing_callback($component_data_local[$property_name], $component_data_local, $property_name, $property_info);
  }
protected function applyComponentDataPropertyProcessing($property_name, &$property_info, &$component_data_local) {
    if (!isset($property_info['processing'])) {
      // No processing: nothing to do.
      return;
    }

    if (empty($component_data_local[$property_name]) && empty($property_info['process_empty'])) {
      // Don't apply to an empty property, unless forced to.
      return;
    }

    $processing_callback = $property_info['processing'];

    $processing_callback($component_data_local[$property_name], $component_data_local, $property_name, $property_info);
  }
protected function applyComponentDataPropertyProcessing ( $ property_name , & $ property_info , & $ component_data_local ) { if ( ! isset ( $ property_info [ 'processing' ] ) ) { // No processing: nothing to do. return ; } if ( empty ( $ component_data_local [ $ property_name ] ) && empty ( $ property_info [ 'process_empty' ] ) ) { // Don't apply to an empty property, unless forced to. return ; } $ processing_callback = $ property_info [ 'processing' ] ; $ processing_callback ( $ component_data_local [ $ property_name ] , $ component_data_local , $ property_name , $ property_info ) ; }
Applies the processing callback for a property in component data.

Helper for processComponentData().

@param $property_name
The name of the property. For child properties, this is the name of just
the child property.
@param &$property_info
The property info array for the property. Passed by reference, as
the processing callback takes this by reference and may make changes.
@param &$component_data_local
The array of component data, or for child properties, the item array that
immediately contains the property. In other words, this array would have
a key $property_name if data has been supplied for this property.
Applies the processing callback for a property in component data .