Permalink
Browse files

Place the manifest reading into a separate utility method

git-svn-id: http://svn.php.net/repository/pear/packages/File_Infopath/trunk@253904 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 58cedd0 commit 5b993cd1f933445773dc53fcbcc6aadb8ad1529c David Sanders committed Feb 28, 2008
Showing with 12 additions and 0 deletions.
  1. +12 −0 Infopath.php
View
@@ -156,6 +156,18 @@ public function __construct($filename)
$this->_cab = new File_Cabinet($filename);
// Read manifest.xsf to obtain information about the form
+ $this->_readManifest();
+ }
+
+ /**
+ * Read some general information about the form: Root element, views and submit
+ * information.
+ *
+ * @access private
+ * @return void
+ */
+ private function _readManifest()
+ {
$manifest = new DOMDocument;
$manifest->loadXML($this->_cab->extract('manifest.xsf'));

0 comments on commit 5b993cd

Please sign in to comment.