protected static function _params($type, $name = "*") {
		if (!$name) {
			$name = '*';
		}
		$library = $namespace = $class = '*';

		if (strpos($type, '.') !== false) {
			$parts = explode('.', $type);
			$type = array_shift($parts);

			switch (count($parts)) {
				case 1:
					list($class) = $parts;
				break;
				case 2:
					list($namespace, $class) = $parts;
				break;
				default:
					$class = array_pop($parts);
					$namespace = join('\\', $parts);
				break;
			}
		}
		if (strpos($name, '.') !== false) {
			$parts = explode('.', $name);
			$library = array_shift($parts);
			$name = array_pop($parts);
			$namespace = $parts ? join('\\', $parts) : "*";
		}
		return compact('library', 'namespace', 'type', 'class', 'name');
	}
protected static function _params($type, $name = "*") {
		if (!$name) {
			$name = '*';
		}
		$library = $namespace = $class = '*';

		if (strpos($type, '.') !== false) {
			$parts = explode('.', $type);
			$type = array_shift($parts);

			switch (count($parts)) {
				case 1:
					list($class) = $parts;
				break;
				case 2:
					list($namespace, $class) = $parts;
				break;
				default:
					$class = array_pop($parts);
					$namespace = join('\\', $parts);
				break;
			}
		}
		if (strpos($name, '.') !== false) {
			$parts = explode('.', $name);
			$library = array_shift($parts);
			$name = array_pop($parts);
			$namespace = $parts ? join('\\', $parts) : "*";
		}
		return compact('library', 'namespace', 'type', 'class', 'name');
	}
protected static function _params ( $ type , $ name = "*" ) { if ( ! $ name ) { $ name = '*' ; } $ library = $ namespace = $ class = '*' ; if ( strpos ( $ type , '.' ) !== false ) { $ parts = explode ( '.' , $ type ) ; $ type = array_shift ( $ parts ) ; switch ( count ( $ parts ) ) { case 1 : list ( $ class ) = $ parts ; break ; case 2 : list ( $ namespace , $ class ) = $ parts ; break ; default : $ class = array_pop ( $ parts ) ; $ namespace = join ( '\\' , $ parts ) ; break ; } } if ( strpos ( $ name , '.' ) !== false ) { $ parts = explode ( '.' , $ name ) ; $ library = array_shift ( $ parts ) ; $ name = array_pop ( $ parts ) ; $ namespace = $ parts ? join ( '\\' , $ parts ) : "*" ; } return compact ( 'library' , 'namespace' , 'type' , 'class' , 'name' ) ; }
Get params from type.

@param string $type
@param string $name default: '*'
@return array type, namespace, class, name
Get params from type .