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