Tripal Plant PopGen Submit
|
Go to the source code of this file.
Functions | |
tpps_api_author_pid_query (array $authors) | |
tpps_api_organism_pid_query (array $orgs) | |
tpps_api_organization_pid_query (array $orgs) | |
tpps_api_project_author_query (array $pids, $entities=FALSE) | |
tpps_api_project_design_query (array $pids) | |
tpps_api_project_genotype_query (array $pids, $entities=FALSE) | |
tpps_api_project_organism_query (array $pids, $entities=FALSE) | |
tpps_api_project_phenotype_query (array $pids, $entities=FALSE) | |
tpps_api_project_publication_query (array $pids, $entities=FALSE) | |
tpps_api_project_query (array $pids, $entities=FALSE) | |
tpps_api_project_stats_query (array $states) | |
tpps_api_project_stock_query (array $pids, $entities=FALSE) | |
tpps_api_query_or (array $vals, array $fields, $override_op=NULL) | |
tpps_api_record_entities ($label, array $record_ids) | |
Defines queries for the TPPS API.
Most queries get information based on a list of project ids, but some can produce a list of project ids based on some conditions. Query functions with names like "tpps_api_*_pid_query" will produce a list of pids based on the provided conditions. For example, the function "tpps_api_author_pid_query" will return a list of pids with authors that match at least one of the provided names. Query functions with names like "tpps_api_project_*_query" will produce a list of ids or entities based on a list of pids. For example, the function "tpps_api_project_organism_query" will return a list of organism ids or, if the entities parameter is set to true, will return a list of organism entities associated with the provided pids.
Definition in file tpps.queries.api.inc.
tpps_api_author_pid_query | ( | array | $authors | ) |
Returns array of project ids associated with provided authors.
array | $authors | An array of author names. |
Definition at line 28 of file tpps.queries.api.inc.
tpps_api_organism_pid_query | ( | array | $orgs | ) |
Returns array of project ids associated with provided species.
array | $orgs | An array of species names. |
Definition at line 49 of file tpps.queries.api.inc.
tpps_api_organization_pid_query | ( | array | $orgs | ) |
Returns array of project ids associated with provided organizations.
array | $orgs | An array of organization names. |
Definition at line 70 of file tpps.queries.api.inc.
tpps_api_project_author_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of authors associated with provided project ids.
This function currently does not support returning Tripal Entities.
array | $pids | An array of project ids. |
bool | $entities | (Placeholder) Whether or not to return entities. |
Definition at line 146 of file tpps.queries.api.inc.
tpps_api_project_design_query | ( | array | $pids | ) |
Returns array of design information associated with provided project ids.
This function does not support returning Tripal Entities.
array | $pids | An array of project ids. |
Definition at line 198 of file tpps.queries.api.inc.
tpps_api_project_genotype_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of genotypes associated with provided project ids.
array | $pids | An array of project ids. |
bool | $entities | Whether or not to return entities. |
Definition at line 284 of file tpps.queries.api.inc.
tpps_api_project_organism_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of species associated with provided project ids.
array | $pids | An array of project ids. |
bool | $entities | Whether or not to return entities. |
Definition at line 169 of file tpps.queries.api.inc.
tpps_api_project_phenotype_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of phenotype ids associated with provided project ids.
This function currently does not support returning Tripal Entities.
array | $pids | An array of project ids. |
bool | $entities | (Placeholder) Whether or not to return entities. |
Definition at line 259 of file tpps.queries.api.inc.
tpps_api_project_publication_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of publications associated with provided project ids.
array | $pids | An array of project ids. |
bool | $entities | Whether or not to return entities. |
Definition at line 115 of file tpps.queries.api.inc.
tpps_api_project_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of projects associated with provided project ids.
array | $pids | An array of project ids. |
bool | $entities | Whether or not to return entities. |
Definition at line 96 of file tpps.queries.api.inc.
tpps_api_project_stats_query | ( | array | $states | ) |
Returns array of submission statistics based on provided submission states.
This function does not support returning Tripal Entities.
array | $states | An array of TPPS submission states. |
Definition at line 313 of file tpps.queries.api.inc.
tpps_api_project_stock_query | ( | array | $pids, |
$entities = FALSE |
|||
) |
Returns array of stocks associated with provided project ids.
array | $pids | An array of project ids. |
bool | $entities | Whether or not to return entities. |
Definition at line 228 of file tpps.queries.api.inc.
tpps_api_query_or | ( | array | $vals, |
array | $fields, | ||
$override_op = NULL |
|||
) |
Constructs a db_or() condition object for use with other TPPS API functions.
The default comparison operator is '~*', but this can be overriden by either specifying a different argument in square brackets following the value being compared, or by specifying a condition-wide operator in the override_op function parameter.
array | $vals | The values being compared in this condition. |
array | $fields | The columns that the values should be compared against. |
string | $override_op | The condition-wide overriding operator. |
Definition at line 339 of file tpps.queries.api.inc.
tpps_api_record_entities | ( | $label, | |
array | $record_ids | ||
) |
Loads and returns entities that refer to the provided record ids.
This function takes a Tripal Entity label and an array of record ids and attempts to load the associated Tripal Entities. It will also attach fields that are not automatically attached by the Tripal Entity loader.
string | $label | The label of the Tripal Entity type. |
array | $record_ids | The array of database record ids referred to by the Tripal Entities. |
Definition at line 370 of file tpps.queries.api.inc.