+ /**
+ * Getter for parser id from resource
+ *
+ * @access private
+ * @author Roland Haeder <webmaster@mxchange.org>
+ * @return int
+ */
+ function get_parser_id ($parser) {
+ // Default is zero
+ $id = 0;
+
+ // Is it a resource?
+ if (is_resource($parser)) {
+ // Cast the resource into id
+ $id = (int) $parser;
+ } // END - if
+
+ // Return the id
+ return $id;
+ }
+