Class ilBibliographicSetting.
More...
|
static | returnDbTableName () |
|
static | getAll () |
|
static | returnDbTableName () |
|
static | installDB () |
|
static | renameDBField ($old_name, $new_name) |
|
static | tableExists () |
|
static | fieldExists ($field_name) |
|
static | removeDBField ($field_name) |
|
static | updateDB () |
|
static | resetDB () |
|
static | truncateDB () |
|
static | flushDB () |
|
static | preloadObjects () |
|
static | additionalParams (array $additional_params) |
|
static | findOrFail ($primary_key, array $add_constructor_args=array()) |
| Tries to find the object and throws an Exception if object is not found, instead of returning null. More...
|
|
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
|
static | where ($where, $operator=null) |
|
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
|
static | innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
|
static | leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
|
static | orderBy ($orderBy, $orderDirection='ASC') |
|
static | dateFormat ($date_format='d.m.Y - H:i:s') |
|
static | limit ($start, $end) |
|
static | affectedRows () |
|
static | count () |
|
static | get () |
|
static | debug () |
|
static | first () |
|
static | getCollection () |
|
static | last () |
|
static | getFirstFromLastQuery () |
|
static | connector (arConnector $connector) |
|
static | raw ($set_raw=true) |
|
static | getArray ($key=null, $values=null) |
|
static | _toCamelCase ($str, $capitalise_first_char=false) |
|
◆ formatAttribute()
ilBibliographicSetting::formatAttribute |
( |
|
$a, |
|
|
|
$type, |
|
|
|
$attributes, |
|
|
|
$prefix |
|
) |
| |
|
private |
◆ generateLibraryLink()
- Parameters
-
- Returns
- string
Definition at line 98 of file class.ilBibliographicSetting.php.
References $attributes, $type, array, formatAttribute(), ilBibliographicEntry\getAttributes(), ilBibliographicEntry\getType(), and getUrl().
Referenced by getButton().
103 $prefix =
"bib_default_";
105 $attr =
array(
"isbn" );
107 $attr =
array(
"pmid" );
109 $attr =
array(
"doi" );
111 $attr =
array(
"issn" );
113 $attr =
array(
"title",
"author",
"year",
"number",
"volume" );
117 $prefix =
"ris_" . strtolower($entry->
getType()) .
"_";
119 $attr =
array(
"sn" );
121 $attr =
array(
"do" );
123 $attr =
array(
"ti",
"t1",
"au",
"py",
"is",
"vl" );
129 if (
sizeof($attr) == 1) {
130 if (($attr[0] ==
"doi") || ($attr[0] ==
"pmid")) {
132 } elseif ($attr[0] ==
"do") {
138 foreach ($attr as $a) {
140 if (strlen($url_params) > 1) {
149 $full_link = $this->
getUrl() . $url_params;
formatAttribute($a, $type, $attributes, $prefix)
Create styles array
The data for the language used.
◆ getAll()
static ilBibliographicSetting::getAll |
( |
| ) |
|
|
static |
◆ getButton()
◆ getConnectorContainerName()
ilBibliographicSetting::getConnectorContainerName |
( |
| ) |
|
◆ getId()
ilBibliographicSetting::getId |
( |
| ) |
|
◆ getImg()
ilBibliographicSetting::getImg |
( |
| ) |
|
◆ getName()
ilBibliographicSetting::getName |
( |
| ) |
|
◆ getShowInList()
ilBibliographicSetting::getShowInList |
( |
| ) |
|
◆ getUrl()
ilBibliographicSetting::getUrl |
( |
| ) |
|
◆ returnDbTableName()
static ilBibliographicSetting::returnDbTableName |
( |
| ) |
|
|
static |
◆ setId()
ilBibliographicSetting::setId |
( |
|
$id | ) |
|
◆ setImg()
ilBibliographicSetting::setImg |
( |
|
$img | ) |
|
◆ setName()
ilBibliographicSetting::setName |
( |
|
$name | ) |
|
◆ setShowInList()
ilBibliographicSetting::setShowInList |
( |
|
$show_in_list | ) |
|
◆ setUrl()
ilBibliographicSetting::setUrl |
( |
|
$url | ) |
|
◆ $id
ilBibliographicSetting::$id |
|
protected |
◆ $img
ilBibliographicSetting::$img |
|
protected |
◆ $name
ilBibliographicSetting::$name |
|
protected |
◆ $show_in_list
ilBibliographicSetting::$show_in_list |
|
protected |
◆ $url
ilBibliographicSetting::$url |
|
protected |
◆ TABLE_NAME
const ilBibliographicSetting::TABLE_NAME = 'il_bibl_settings' |
The documentation for this class was generated from the following file: