|
@@ 880-886 (lines=7) @@
|
| 877 |
|
* @param string $elm Namespace . ' ' . tag |
| 878 |
|
* @throws RuntimeException If we have an element that's not <rdf:Bag> |
| 879 |
|
*/ |
| 880 |
|
private function startElementModeBag( $elm ) { |
| 881 |
|
if ( $elm === self::NS_RDF . ' Bag' ) { |
| 882 |
|
array_unshift( $this->mode, self::MODE_LI ); |
| 883 |
|
} else { |
| 884 |
|
throw new RuntimeException( "Expected <rdf:Bag> but got $elm." ); |
| 885 |
|
} |
| 886 |
|
} |
| 887 |
|
|
| 888 |
|
/** |
| 889 |
|
* Start element in MODE_SEQ (ordered array) |
|
@@ 922-928 (lines=7) @@
|
| 919 |
|
* @param string $elm Namespace . ' ' . tag |
| 920 |
|
* @throws RuntimeException If we have an element that's not <rdf:Alt> |
| 921 |
|
*/ |
| 922 |
|
private function startElementModeLang( $elm ) { |
| 923 |
|
if ( $elm === self::NS_RDF . ' Alt' ) { |
| 924 |
|
array_unshift( $this->mode, self::MODE_LI_LANG ); |
| 925 |
|
} else { |
| 926 |
|
throw new RuntimeException( "Expected <rdf:Seq> but got $elm." ); |
| 927 |
|
} |
| 928 |
|
} |
| 929 |
|
|
| 930 |
|
/** |
| 931 |
|
* Handle an opening element when in MODE_SIMPLE |