Update DocDown and Underscore.

Former-commit-id: 7744ef274a9d8b47975dc9f3e3283bd778bc5403
This commit is contained in:
John-David Dalton
2012-10-06 22:31:08 -07:00
parent 17e113dafb
commit 48521cb1e4
7 changed files with 63 additions and 8 deletions

View File

@@ -152,6 +152,25 @@ class Entry {
return $this->_call;
}
/**
* Extracts the entry's `category` data.
*
* @memberOf Entry
* @returns {String} The entry's `category` data.
*/
public function getCategory() {
if (isset($this->_category)) {
return $this->_category;
}
preg_match('#\* *@category\s+([^\n]+)#', $this->entry, $result);
if (count($result)) {
$result = trim(preg_replace('/(?:^|\n)\s*\* ?/', ' ', $result[1]));
}
$this->_category = $result;
return $result;
}
/**
* Extracts the entry's description.
*