src/classes/CCContainer.php
public static function call()
	{
		$arguments = func_get_args();

		// get the key
		$key = array_shift( $arguments );

		// container call
		if ( is_string( $key ) && array_key_exists( $key, static::$_container ) && is_callable( static::$_container[$key] ) )
		{
			return call_user_func_array( static::$_container[$key], $arguments );
		}

		if ( !is_callable( $key ) )
		{
			throw new CCException( "CCContainer::call - Cannot call '".$key."' invalid callback." );
		}

		// default callback
		return call_user_func_array( $key, $arguments );
	}
public static function call()
	{
		$arguments = func_get_args();

		// get the key
		$key = array_shift( $arguments );

		// container call
		if ( is_string( $key ) && array_key_exists( $key, static::$_container ) && is_callable( static::$_container[$key] ) )
		{
			return call_user_func_array( static::$_container[$key], $arguments );
		}

		if ( !is_callable( $key ) )
		{
			throw new CCException( "CCContainer::call - Cannot call '".$key."' invalid callback." );
		}

		// default callback
		return call_user_func_array( $key, $arguments );
	}
public static function call ( ) { $ arguments = func_get_args ( ) ; // get the key $ key = array_shift ( $ arguments ) ; // container call if ( is_string ( $ key ) && array_key_exists ( $ key , static :: $ _container ) && is_callable ( static :: $ _container [ $ key ] ) ) { return call_user_func_array ( static :: $ _container [ $ key ] , $ arguments ) ; } if ( ! is_callable ( $ key ) ) { throw new CCException ( "CCContainer::call - Cannot call '" . $ key . "' invalid callback." ) ; } // default callback return call_user_func_array ( $ key , $ arguments ) ; }
call a container

@param string 	$key
@param mixed		$callback
@return void
call a container