芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/backup/cc/cc_lib/cc_builder_creator.php
. /** * @package backup-convert * @subpackage cc-library * @copyright 2011 Darko Miletic
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Factory pattern class * Create the version class to use * */ class cc_builder_creator { public static function factory($version){ if (is_null($version)) { throw new Exception("Version is null!"); } if (include_once 'cc_version' . $version . '.php') { $classname = 'cc_version' . $version; return new $classname; } else { throw new Exception ("Dont find cc version class!"); } } }