21 public function execute(array &$result): bool
23 $res = HookDataTable::getList(
33 if (!$result[
'count'])
35 $result[
'count'] = count($res);
37 if (!$result[
'steps'])
42 if (!$result[
'checkedRows'])
44 $result[
'checkedRows'] = 0;
49 while ($row = $res->fetch())
51 $result[
"steps"] = $result[
"steps"]++;
52 if ($countRows > $result[
'checkedRows'])
54 $result[
'checkedRows']++;
56 '#(<noscript>.*?<style.*?data-id="([^"]+)"[^>]*>[^<]+</style>)#is',
60 $matchesNew = preg_replace(
61 '/(href="[^"]*)(css)([?]family=)([\w+]+)[^"]*(")/i',
62 '${1}'.self::PART_FONT_PATH.
'$3$4'.self::FONT_PARAMS.
'$5',
65 if ($matches[1] !== $matchesNew)
68 $value = str_replace($matches[1], $matchesNew, $row[
'VALUE']);
69 HookDataTable::update(
73 if ($countFixedRows === self::STEP_PORTION)
75 $result[
'checkedRows'] = $countRows;