sac_colltitle = sac_clean($sac_newcolltitle); // Create the accepts arrays $sac_accept = array(); $sac_acceptalternative = array(); $sac_acceptpackaging = array(); } // Add a new supported packaging type function addAcceptPackaging($ap) { $format = (string)$ap[0]; $q = (string)$ap[0]['q']; if (empty($q)) { $q = "1.0"; } $this->sac_acceptpackaging[$format] = $q; } } ?>