Namespace: utils

shared. utils

Methods


<static> findTagSet(crops)

Parameters:
Name Type Description
crops Array.<Crop>
Returns:
Type
Array.<String>

<static> getCropDisplayName(crop)

Every crop has a binomial name, common name is optional.
Parameters:
Name Type Description
crop Crop
Returns:
Type
String

<static> getCropTagNames(crop)

Parameters:
Name Type Description
crop Crop
Returns:
Type
Array.<String>

<static> getHttpServerUrl()

Returns:
Type
String

<static> getPouchAdminDatabaseUrl(database)

Parameters:
Name Type Description
database String
Returns:
Type
String

<static> getPouchDatabaseUrl(database)

Parameters:
Name Type Description
database String
Returns:
Type
String

<static> mapCropsByBinomialName(crops)

Parameters:
Name Type Description
crops Array.<Crop>
Returns:
Type
Object

<static> toCamelCase(name)

Parameters:
Name Type Description
name String
Returns:
Type
String