File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11<?php
22
33abstract class xml_file_base implements xml_file_interface {
4- public $ metadata ;
4+ private $ metadata ;
55
66 abstract function type ();
77
@@ -19,6 +19,7 @@ private function ensure_metadata() {
1919 return $ this ->metadata ;
2020 }
2121
22+ public function clear_metadata () { unset($ metadata ); }
2223 public function init_metadata () { /* Overridable */ }
2324 public function get_property_list () { return array_keys ($ this ->ensure_metadata ()); }
2425 public function has_property ($ field ) { return in_array ($ field , $ this ->get_property_list ()); }
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ public function clear()
7575 unset($ this ->sourceDate );
7676 unset($ this ->Doc );
7777 unset($ this ->XQuery );
78+ $ this ->clear_metadata ();
7879 $ this ->loaded = false ;
7980 $ this ->filename = "" ;
8081 $ this ->mode = "" ;
You can’t perform that action at this time.
0 commit comments