public function fetch($id) { $r = parent::fetch($id); assert(array_Key_exists($this->type, self::$RegisteredTypes)); assert(self::$RegisteredTypes[$this->type] == get_class($this)); return $r; }
$file = ""; $artist = ""; $album = ""; $mbid = ""; $albumpath = ""; $albumuri = ""; $small_file = ""; $big_file = ""; $base64data = ""; $delaytime = 1; $fp = null; $in_collection = false; $found = false; $covernames = array("cover", "albumart", "thumb", "albumartsmall", "front"); $fname = $_REQUEST['key']; if (array_Key_exists('stream', $_REQUEST)) { // 'Stream' is used when we're updating the image for // a favourite radio station. $stream = $_REQUEST["stream"]; } $findalbum = array("get_imagesearch_info", "check_stream", "check_playlist"); if (array_key_exists("src", $_REQUEST)) { $src = $_REQUEST['src']; } else { if (array_key_exists("ufile", $_FILES)) { $file = $_FILES['ufile']['name']; } else { if (array_key_exists("base64data", $_REQUEST)) { $base64data = $_REQUEST['base64data']; } else { while ($found == false && count($findalbum) > 0) {
/** * Turns on autoloading. Optionally, it can prep for explicit use * of self::autoload only. * @param bool $takeover defaults to TRUE */ public static function initializeAutoloader($takeover = TRUE) { //#TODO #3.0.0 allow for uninstall if ($takeover && !self::$_autoloadingInstalled) { spl_autoload_register('Saf_Kickstart::autoload'); self::$_autoloadingInstalled = TRUE; } if (self::$_initialized) { return; } foreach (self::$_libraries as $libraryPrefix => $callableList) { foreach ($callableList as $callableIndex => $callable) { if (!is_a($callable, 'ReflectionFunctionAbstract', FALSE) && (!is_array($callable) || !array_key_exists(0, $callable) || !array_Key_exists(1, $callable) || !is_object($callable[0]) || !is_a($callable[1], 'ReflectionFunctionAbstract', FALSE))) { self::$_libraries[$libraryPrefix][$callableIndex] = self::_instantiateCallable($callable); } } } foreach (self::$_specialAutoloaders as $loaderName => $callableList) { foreach ($callableList as $callableIndex => $callable) { if (!is_a($callable, 'ReflectionFunctionAbstract', FALSE) && (!is_array($callable) || !array_key_exists(0, $callable) || !array_Key_exists(1, $callable) || !is_object($callable[0]) || !is_a($callable[1], 'ReflectionFunctionAbstract', FALSE))) { self::$_specialAutoloaders[$loaderName][$callableIndex] = self::_instantiateCallable($callable); } } } foreach (self::$_autoloaders as $prefix => $paths) { foreach ($paths as $pathIndex => $path) { self::$_autoloaders[$prefix][$pathIndex] = self::translatePath($path); } } self::$_initialized = TRUE; }