def items(paths=[], searchSub=False, portal_types=[], recentDays=0,
    sort_limit=0, sort_order='desc', sort_on='modified', cachetime=300,
    retJson=True):
    """ Return searched content items.

        @param paths
        paths to search items in it

        @param searchSub
        search all sub-objects or not( default is False )

        @param portal_types
        portal types to search, [] means all( default is [] )

        @param recentDays
        only return recent n days modified objects.
        0 means no time limit( default is 0 ),
        1 means recent 1 day( from begin of today )
        2 means recent 2 day( from begin of yesterday )
        ...

        @param sort_limit
        max returned objects number, 0 means no limit( default is 0 )

        @param sort_order
        sort order of returned objects( default is desc )

        @param sort_on
        sort on( default is modified date )

        @param cachetime
        time to keep the result in cache( in second, default is 300 )

        @retJson
        format return value to json format or not( default True )

        @return status of create process
        json data:
        {
            success: True,
            msg: 'Get folder contents success.',
            items: [...]
        }

        """
