diff --git a/lib/classes/task/period/subdef.php b/lib/classes/task/period/subdef.php index 484f107d6d..e5f8fa3f89 100644 --- a/lib/classes/task/period/subdef.php +++ b/lib/classes/task/period/subdef.php @@ -10,6 +10,8 @@ use Alchemy\Phrasea\Core\Configuration\Configuration; +use MediaAlchemyst\Transmuter\Image2Image; + class task_period_subdef extends task_databoxAbstract { const MINMEGS = 20; @@ -32,6 +34,8 @@ class task_period_subdef extends task_databoxAbstract */ protected $record_buffer_size; + protected $thumbnailExtraction; + /** * Return about text * @@ -54,6 +58,13 @@ class task_period_subdef extends task_databoxAbstract return(_('task::subdef:creation des sous definitions')); } + protected function loadSettings(SimpleXMLElement $sx_task_settings) + { + $this->thumbnailExtraction = (Boolean) trim($sx_task_settings->embedded); + + parent::loadSettings($sx_task_settings); + } + /** * must return the xml (text) version of the form * @@ -64,14 +75,14 @@ class task_period_subdef extends task_databoxAbstract { $request = http_request::getInstance(); - $parm2 = $request->get_parms('period', 'flush', 'maxrecs', 'maxmegs'); + $parm2 = $request->get_parms('period', 'flush', 'maxrecs', 'maxmegs', 'embedded'); $dom = new DOMDocument(); $dom->preserveWhiteSpace = false; $dom->formatOutput = true; if (@$dom->loadXML($oldxml)) { $xmlchanged = false; - foreach (array('str:period', 'str:flush', 'str:maxrecs', 'str:maxmegs') as $pname) { + foreach (array('str:period', 'str:flush', 'str:maxrecs', 'str:maxmegs', 'boo:embedded') as $pname) { $ptype = substr($pname, 0, 3); $pname = substr($pname, 4); $pvalue = $parm2[$pname]; @@ -137,6 +148,7 @@ class task_period_subdef extends task_databoxAbstract .flush.value = "flush, "js", '"') ?>"; .maxrecs.value = "maxrecs, "js", '"') ?>"; .maxmegs.value = "maxmegs, "js", '"') ?>"; + .embedded.value = embedded); ?>; Mo +
+ +
+ +
+
thumbnailExtraction; + $connbas = $databox->get_connection(); $sql = 'SELECT coll_id, record_id @@ -347,6 +368,7 @@ class task_period_subdef extends task_databoxAbstract %s %s %s + 0 ', min(max($period, self::MINPERIOD), self::MAXPERIOD), min(max($flush, self::MINFLUSH), self::MAXFLUSH),