@@ 536-568 (lines=33) @@ | ||
533 | } |
|
534 | } |
|
535 | ||
536 | if (!function_exists('propertiesNameValue')) { |
|
537 | /** |
|
538 | * parses a resource property string and returns the result as an array |
|
539 | * duplicate of method in documentParser class |
|
540 | * |
|
541 | * @param string $propertyString |
|
542 | * @return array |
|
543 | */ |
|
544 | function propertiesNameValue($propertyString) |
|
545 | { |
|
546 | $parameter = array(); |
|
547 | if (!empty ($propertyString)) { |
|
548 | $tmpParams = explode("&", $propertyString); |
|
549 | $countParams = count($tmpParams); |
|
550 | for ($x = 0; $x < $countParams; $x++) { |
|
551 | if (strpos($tmpParams[$x], '=', 0)) { |
|
552 | $pTmp = explode("=", $tmpParams[$x]); |
|
553 | $pvTmp = explode(";", trim($pTmp[1])); |
|
554 | if ($pvTmp[1] == 'list' && $pvTmp[3] != "") { |
|
555 | $parameter[trim($pTmp[0])] = $pvTmp[3]; |
|
556 | } //list default |
|
557 | else { |
|
558 | if ($pvTmp[1] != 'list' && $pvTmp[2] != "") { |
|
559 | $parameter[trim($pTmp[0])] = $pvTmp[2]; |
|
560 | } |
|
561 | } |
|
562 | } |
|
563 | } |
|
564 | } |
|
565 | ||
566 | return $parameter; |
|
567 | } |
|
568 | } |
|
569 | ||
570 | // check status of Inherit Parent Template plugin |
|
571 | $auto_template_logic = 'parent'; |
@@ 539-571 (lines=33) @@ | ||
536 | } |
|
537 | } |
|
538 | ||
539 | if (!function_exists('propertiesNameValue')) { |
|
540 | /** |
|
541 | * parses a resource property string and returns the result as an array |
|
542 | * duplicate of method in documentParser class |
|
543 | * |
|
544 | * @param string $propertyString |
|
545 | * @return array |
|
546 | */ |
|
547 | function propertiesNameValue($propertyString) |
|
548 | { |
|
549 | $parameter = array(); |
|
550 | if (!empty ($propertyString)) { |
|
551 | $tmpParams = explode("&", $propertyString); |
|
552 | $countParams = count($tmpParams); |
|
553 | for ($x = 0; $x < $countParams; $x++) { |
|
554 | if (strpos($tmpParams[$x], '=', 0)) { |
|
555 | $pTmp = explode("=", $tmpParams[$x]); |
|
556 | $pvTmp = explode(";", trim($pTmp[1])); |
|
557 | if ($pvTmp[1] == 'list' && $pvTmp[3] != "") { |
|
558 | $parameter[trim($pTmp[0])] = $pvTmp[3]; |
|
559 | } //list default |
|
560 | else { |
|
561 | if ($pvTmp[1] != 'list' && $pvTmp[2] != "") { |
|
562 | $parameter[trim($pTmp[0])] = $pvTmp[2]; |
|
563 | } |
|
564 | } |
|
565 | } |
|
566 | } |
|
567 | } |
|
568 | ||
569 | return $parameter; |
|
570 | } |
|
571 | } |
|
572 | ||
573 | if (!function_exists('propUpdate')) { |
|
574 | /** |