mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 21:38:39 +00:00
34 lines
815 B
PHP
Executable File
34 lines
815 B
PHP
Executable File
<?php
|
|
|
|
namespace Mpdf\Tag;
|
|
|
|
class IndexInsert extends Tag
|
|
{
|
|
|
|
public function open($attr, &$ahtml, &$ihtml)
|
|
{
|
|
$indexCollationLocale = '';
|
|
if (isset($attr['COLLATION'])) {
|
|
$indexCollationLocale = $attr['COLLATION'];
|
|
}
|
|
|
|
$indexCollationGroup = '';
|
|
if (isset($attr['COLLATION-GROUP'])) {
|
|
$indexCollationGroup = $attr['COLLATION-GROUP'];
|
|
}
|
|
|
|
$usedivletters = 1;
|
|
if (isset($attr['USEDIVLETTERS']) && (strtoupper($attr['USEDIVLETTERS']) === 'OFF'
|
|
|| $attr['USEDIVLETTERS'] == -1
|
|
|| $attr['USEDIVLETTERS'] === '0')) {
|
|
$usedivletters = 0;
|
|
}
|
|
$links = isset($attr['LINKS']) && (strtoupper($attr['LINKS']) === 'ON' || $attr['LINKS'] == 1);
|
|
$this->mpdf->InsertIndex($usedivletters, $links, $indexCollationLocale, $indexCollationGroup);
|
|
}
|
|
|
|
public function close(&$ahtml, &$ihtml)
|
|
{
|
|
}
|
|
}
|