class csl_info in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_info
- 7.2 modules/CiteProc/CSL.inc \csl_info
Hierarchy
- class \csl_info
Expanded class hierarchy of csl_info
File
- modules/
CiteProc/ CSL.inc, line 480 - CiteProc-PHP.
View source
class csl_info {
public $title;
public $id;
public $authors = array();
public $links = array();
/**
*
*/
public function __construct($dom_node) {
$name = array();
foreach ($dom_node->childNodes as $node) {
if ($node->nodeType == 1) {
switch ($node->nodeName) {
case 'author':
case 'contributor':
foreach ($node->childNodes as $authnode) {
if ($node->nodeType == 1) {
$name[$authnode->nodeName] = $authnode->nodeValue;
}
}
$this->authors[] = $name;
break;
case 'link':
foreach ($node->attributes as $attribute) {
$this->links[] = $attribute->value;
}
break;
default:
$this->{$node->nodeName} = $node->nodeValue;
}
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
csl_info:: |
public | property | ||
csl_info:: |
public | property | ||
csl_info:: |
public | property | ||
csl_info:: |
public | property | ||
csl_info:: |
public | function |