Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14172

The 'script' parameter should not be needed any more in template operator definitions

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.0.1, 4.1.0alpha1
    • None
    • PHP Version: 5.2.6

    Description

      In order to create a new template operator, the operator definition requires either a 'function' parameter or a couple of 'script'/'class' parameters. The second way is like:

      $eZTemplateOperatorArray = array();
      $eZTemplateOperatorArray[] = array(
          'script' => 'extension/extName/autoloads/eztemplateautoload.php',
          'class' => 'myOperatorClass',
          'operator_names' => array( ...)
      );
      

      But since autoload mechanism is now in charge of loading classes (and class is here stronlgy linked to script parameter), the 'script' parameter should not be needed any more, or at least optionnal.

      The methods 'loadAndRegisterOperators' / 'registerAutoloadOperators' in class 'eZTemplate' should then be adapted to fit this new behavior, as it's quite disconcerting for an eZ4 developer to give a full class file path now

      Attachments

        Activity

          People

            andre1 andre1
            alexandre.nion alexandre.nion
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: