diff --git a/packages/ezflow_extension/ezextension/ezflow/classes/ezflowfetchparameters.php b/packages/ezflow_extension/ezextension/ezflow/classes/ezflowfetchparameters.php new file mode 100644 index 00000000..f61acaae --- /dev/null +++ b/packages/ezflow_extension/ezextension/ezflow/classes/ezflowfetchparameters.php @@ -0,0 +1,36 @@ + +// This program is free software; you can redistribute it and/or +// modify it under the terms of version 2.0 of the GNU General +// Public License as published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of version 2.0 of the GNU General +// Public License along with this program; if not, write to the Free +// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +// MA 02110-1301, USA. +// +// +// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ## +// + +class eZFlowFetchParameters +{ + /** @var array */ + public $block; + + public function __construct( array $block ) + { + $this->block = $block; + } +} diff --git a/packages/ezflow_extension/ezextension/ezflow/classes/ezflowoperations.php b/packages/ezflow_extension/ezextension/ezflow/classes/ezflowoperations.php index bb4217b6..a5171277 100644 --- a/packages/ezflow_extension/ezextension/ezflow/classes/ezflowoperations.php +++ b/packages/ezflow_extension/ezextension/ezflow/classes/ezflowoperations.php @@ -73,6 +73,7 @@ public static function updateBlockPoolByBlockID( $block, $publishedBeforeOrAt = $fetchClassOptions->iniFile = 'block.ini'; $fetchClassOptions->iniSection = $block['block_type']; $fetchClassOptions->iniVariable = 'FetchClass'; + $fetchClassOptions->handlerParams = array( new eZFlowFetchParameters( $block ) ); $fetchInstance = eZExtension::getHandlerClass( $fetchClassOptions );