class csl_factory in Bibliography Module 6.2
Same name and namespace in other branches
- 7 modules/CiteProc/CSL.inc \csl_factory
- 7.2 modules/CiteProc/CSL.inc \csl_factory
Hierarchy
- class \csl_factory
Expanded class hierarchy of csl_factory
File
- modules/
CiteProc/ CSL.inc, line 118
View source
class csl_factory {
public static function create($dom_node, $citeproc = NULL) {
$class_name = 'csl_' . str_replace('-', '_', $dom_node->nodeName);
if (class_exists($class_name)) {
return new $class_name($dom_node, $citeproc);
}
else {
return NULL;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_factory:: |
public static | function |