/** * Checks, whether a resource has once been imported or not. * @param integer GUID of the Resource to import */ function syndicateImported($guid) { global $imported; resetDBCache(); $trans = translateXmlGUID($guid); if (getTypeByGUID($trans) != "") { return true; } $imported++; return false; }
/** * Get the name of a resource specified by its guid * @param string GUID of a resource */ function getResourceName($guid) { $type = getTypeByGUID($guid); if ($type=="PAGETEMPLATE") { return getSPMLink($guid); } else if ($type=="CLUSTERTEMPLATE") { return getCLTLink($guid); } else if ($type=="METATEMPLATE") { return getMTLink($guid); } else if ($type== "CLUSTERNODE") { return getCLNLink($guid); } }