public function D3LibraryInfoProcessor::setKey in d3.js 7
Set the current key being processed.
2 calls to D3LibraryInfoProcessor::setKey()
- D3LibraryInfoProcessor::process in includes/
D3LibraryInfoProcessor.inc - Main function to process the info file for the current keys.
- D3LibraryInfoProcessor::processValues in includes/
D3LibraryInfoProcessor.inc - Sub function to start a recursive process.
File
- includes/
D3LibraryInfoProcessor.inc, line 42 - D3 .info file processor class.
Class
- D3LibraryInfoProcessor
- Parse additional information from library .info files.
Code
public function setKey($key, $depth = 0) {
$this->key[$depth] = $key;
foreach ($this->key as $index => $value) {
if ($index == $depth) {
$this->key[$index] = $key;
}
if ($index > $depth) {
unset($this->key[$index]);
}
}
}