public static function getLocation($array = false)
    {
        $folder   = realpath(dirname(__FILE__) . '/../') . '/' . self::DB_FOLDER;
        $filepath = $folder . '/' . self::DB_FILENAME;
        if ( ! $array) {
            return $filepath;
        }

        return array(
            'folder' => $folder,
            'file'   => self::DB_FILENAME,
        );
    }
public static function getLocation($array = false)
    {
        $folder   = realpath(dirname(__FILE__) . '/../') . '/' . self::DB_FOLDER;
        $filepath = $folder . '/' . self::DB_FILENAME;
        if ( ! $array) {
            return $filepath;
        }

        return array(
            'folder' => $folder,
            'file'   => self::DB_FILENAME,
        );
    }
public static function getLocation ( $ array = false ) { $ folder = realpath ( dirname ( __FILE__ ) . '/../' ) . '/' . self :: DB_FOLDER ; $ filepath = $ folder . '/' . self :: DB_FILENAME ; if ( ! $ array ) { return $ filepath ; } return array ( 'folder' => $ folder , 'file' => self :: DB_FILENAME , ) ; }
Get the location of the database file.

@since 0.1.0

@param bool $array Optional. Whether to return the location as an array. Defaults to false.

@return string|array Either a string, containing the absolute path to the file, or an array with the location
split up into two keys named 'folder' and 'filename'
Get the location of the database file .