Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PHP GBIF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Res Telæ
PHP GBIF
Commits
252c210a
Commit
252c210a
authored
Feb 9, 2021
by
Felip Manyer i Ballester
Browse files
Options
Downloads
Patches
Plain Diff
Default values
parent
e09ed9c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Species.php
+15
-0
15 additions, 0 deletions
src/Species.php
with
15 additions
and
0 deletions
src/Species.php
+
15
−
0
View file @
252c210a
...
@@ -252,6 +252,11 @@ class Species extends Gbif {
...
@@ -252,6 +252,11 @@ class Species extends Gbif {
* @see https://www.gbif.org/developer/species#searching
* @see https://www.gbif.org/developer/species#searching
*/
*/
public
function
nameBackbone
(
array
$args
)
{
public
function
nameBackbone
(
array
$args
)
{
// Default values.
$args
+=
[
'limit'
=>
100
,
];
if
(
isset
(
$args
[
'strict'
]))
{
if
(
isset
(
$args
[
'strict'
]))
{
$args
[
'strict'
]
=
$this
->
bool2str
(
$args
[
'strict'
]);
$args
[
'strict'
]
=
$this
->
bool2str
(
$args
[
'strict'
]);
}
}
...
@@ -432,6 +437,11 @@ class Species extends Gbif {
...
@@ -432,6 +437,11 @@ class Species extends Gbif {
* @see http://www.gbif.org/developer/species#searching
* @see http://www.gbif.org/developer/species#searching
*/
*/
public
function
nameLookup
(
array
$args
)
{
public
function
nameLookup
(
array
$args
)
{
// Default values.
$args
+=
[
'limit'
=>
100
,
];
if
(
isset
(
$args
[
'isExtinct'
]))
{
if
(
isset
(
$args
[
'isExtinct'
]))
{
$args
[
'isExtinct'
]
=
$this
->
bool2str
(
$args
[
'isExtinct'
]);
$args
[
'isExtinct'
]
=
$this
->
bool2str
(
$args
[
'isExtinct'
]);
}
}
...
@@ -496,6 +506,11 @@ class Species extends Gbif {
...
@@ -496,6 +506,11 @@ class Species extends Gbif {
* @see http://www.gbif.org/developer/species#searching
* @see http://www.gbif.org/developer/species#searching
*/
*/
public
function
nameSuggest
(
array
$args
)
{
public
function
nameSuggest
(
array
$args
)
{
// Default values.
$args
+=
[
'limit'
=>
100
,
];
return
$this
->
gbifGet
(
'species/suggest'
,
$args
);
return
$this
->
gbifGet
(
'species/suggest'
,
$args
);
}
}
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment