# api

class api

## Methods

static array
biblio_load(object $obj_db, int $biblio_id)

Static Method to load collection/bibliography data from database

static void
bibliolog_write(object $obj_db, int $biblio_id, int $user_id, string $realname, string $title, string $action, string $affectedrow, array $rawdata, $additional_information = NULL)

Static Method to write biblio activities logs

static
bibliolog_compare($obj_db, $biblio_id, $user_id, $realname, $title, $current, $previous = NULL)

No description

static
member_load($obj_db, $member_id)

No description

static object
to_object(array $array)

Convert array to object

static void
update_to_index($array_data)

Send to indexing engine (Solr / ElasticSearch) via REST

## Details

###
at line 41
`static array biblio_load(object $obj_db, int $biblio_id)`

Static Method to load collection/bibliography data from database

#### Parameters

object | $obj_db |
int | $biblio_id |

#### Return Value

array | or false

###
at line 223
`static void bibliolog_write(object $obj_db, int $biblio_id, int $user_id, string $realname, string $title, string $action, string $affectedrow, array $rawdata, $additional_information = NULL)`

Static Method to write biblio activities logs

#### Parameters

object | $obj_db |
int | $biblio_id |
int | $user_id |
string | $realname |
string | $title |
string | $action |
string | $affectedrow |
array | $rawdata |
| $additional_information |

#### Return Value

void |

###
at line 267
`static bibliolog_compare($obj_db, $biblio_id, $user_id, $realname, $title, $current, $previous = NULL)`

No description

#### Parameters

| $obj_db |
| $biblio_id |
| $user_id |
| $realname |
| $title |
| $current |
| $previous |

###
at line 319
`static member_load($obj_db, $member_id)`

No description

#### Parameters

| $obj_db |
| $member_id |

###
at line 370
`static object to_object(array $array)`

Convert array to object

#### Parameters

array | $array |

#### Return Value

object |

###
at line 381
`static void update_to_index($array_data)`

Send to indexing engine (Solr / ElasticSearch) via REST

#### Parameters

| $array_data |

#### Return Value

void |