Uploaded image for project: 'Nuxeo PHP Project'
  1. Nuxeo PHP Project
  2. PHPCLIENT-22

Add contextParameters support

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Nuxeo Platform Compat

      Description

      It's required to read the additional data received in the JSON response when enrichers are used.

      Suggested change

      --- a/nuxeo-php-client/src/Nuxeo/Client/Objects/Document.php	2020-12-10 18:34:37.703554686 +0100
      +++ b/nuxeo-php-client-master/src/Nuxeo/Client/Objects/Document.php	2018-10-05 12:59:46.000000000 +0200
      @@ -82,12 +82,6 @@
         private $changeToken;
       
         /**
      +   * @var mixed[]
      +   * @Serializer\Type("array")
      +   */
      +  private $contextParameters;
      +
      +  /**
          * @var string
          * @Serializer\Type("string")
          */
      @@ -371,6 +377,22 @@
           return $this;
         }
       
      +  /**
      +   * @return mixed[]
      +   */
      +  public function getContextParameters() {
      +    return $this->contextParameters;
      +  }
      +
      +  /**
      +   * @param mixed[] $contextParameters
      +   * @return self
      +   */
      +  public function setContextParameters($contextParameters) {
      +    $this->contextParameters = $contextParameters;
      +    return $this;
      +  }
      +
         /**
          * @return string
          */
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: