@@ 595-597 (lines=3) @@ | ||
592 | * @param array|string|int $names The element name(s) to not be output as subelements |
|
593 | */ |
|
594 | public static function unsetSubelementsList( array &$arr, $names ) { |
|
595 | if ( isset( $arr[self::META_SUBELEMENTS] ) ) { |
|
596 | $arr[self::META_SUBELEMENTS] = array_diff( $arr[self::META_SUBELEMENTS], (array)$names ); |
|
597 | } |
|
598 | } |
|
599 | ||
600 | /** |
|
@@ 705-707 (lines=3) @@ | ||
702 | * @param array|string $names The element name(s) to not preserve |
|
703 | */ |
|
704 | public static function unsetPreserveKeysList( array &$arr, $names ) { |
|
705 | if ( isset( $arr[self::META_PRESERVE_KEYS] ) ) { |
|
706 | $arr[self::META_PRESERVE_KEYS] = array_diff( $arr[self::META_PRESERVE_KEYS], (array)$names ); |
|
707 | } |
|
708 | } |
|
709 | ||
710 | /** |