1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00
ampache/modules/GMApi/GM_Protocol.php
2013-11-17 01:21:00 +01:00

23 lines
No EOL
393 B
PHP

<?php
if(!defined('IN_GMAPI')) { die('...'); }
class GM_Protocol {
public static function getSJProtocol($service_name) {
$name = "SJ_".$service_name;
if(!class_exists($name))
return false;
return new $name();
}
public static function getWCProtocol($service_name) {
$name = "WC_".$service_name;
if(!class_exists($name))
return false;
return new $name();
}
}
?>