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

fix API of clusterfilehandlers fileStoreContents() and fileStoreContents(): add return value

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: High High
    • None
    • 3.10.0, 3.9.4, 4.0.0alpha2
    • Legacy > Clustering
    • None

    Description

      It does take some deviant thinking to understand why ezfilehandler methods return a nice and clean bool value on operations such as move, linkcopy, copy, while all the corresponding actions executed by a cluster file handler return void!

      There is no other way that the cluster file handler can start to eb used as THE WAY TO STORE FILES IN EZ for all extensions.

      Plus a cleanup of ezfsclusterfilehandler: why does storeContents rely on eZFile::create and fileStoreContents does not? both should rely on the same checks/access methods to fs.

      Plus add some documentation: 1 is faster than 2

      1:
      $file::fileStoreContents($filename, $contents);
      
      2:
      $file = eZClusterFileHandler::instance($filename);
      $file::StoreContents($contents);
      

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: