class csl_mapper in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_mapper
- 7.2 modules/CiteProc/CSL.inc \csl_mapper
Hierarchy
- class \csl_mapper
Expanded class hierarchy of csl_mapper
File
- modules/
CiteProc/ CSL.inc, line 2245 - CiteProc-PHP.
View source
class csl_mapper {
/**
*
*/
public function map_field($field) {
if (!isset($this->field_map)) {
$this->field_map = biblio_get_map('field_map', 'csl');
}
$vars = explode(' ', $field);
foreach ($vars as $key => $value) {
$vars[$key] = !empty($this->field_map[$value]) ? $this->field_map[$value] : '';
}
return implode(' ', $vars);
}
/**
*
*/
public function map_type($types) {
if (!isset($this->type_map)) {
$this->type_map = biblio_get_map('type_map', 'csl');
}
$vars = explode(' ', $types);
foreach ($vars as $key => $value) {
$vars[$key] = !empty($this->type_map[$value]) ? $this->type_map[$value] : '';
}
return implode(' ', $vars);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_mapper:: |
public | function | ||
csl_mapper:: |
public | function |