@@ -101,7 +101,7 @@ |
||
| 101 | 101 | * @param string $content the shortcode content |
| 102 | 102 | * @param ShortcodeParser $parser the ShortcodeParser instance |
| 103 | 103 | * @param string $shortcode the raw shortcode being parsed |
| 104 | - * @return String |
|
| 104 | + * @return null|HTMLText |
|
| 105 | 105 | **/ |
| 106 | 106 | public static function parse_shortcode($arguments, $content, $parser, $shortcode) |
| 107 | 107 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * @param string $content the shortcode content |
| 22 | 22 | * @param ShortcodeParser $parser the ShortcodeParser instance |
| 23 | 23 | * @param string $shortcode the raw shortcode being parsed |
| 24 | - * @return String |
|
| 24 | + * @return null|HTMLText |
|
| 25 | 25 | **/ |
| 26 | 26 | public static function parse_shortcode($arguments, $content, $parser, $shortcode) |
| 27 | 27 | { |
@@ -60,6 +60,9 @@ |
||
| 60 | 60 | return $this->customise(array('Item' => $item))->renderWith(array('AbbreviationPage_view', 'Page')); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $slug |
|
| 65 | + */ |
|
| 63 | 66 | public function getItem($slug) |
| 64 | 67 | { |
| 65 | 68 | return Abbreviation::get()->filter(array('URLSlug' => $slug))->first(); |
@@ -39,6 +39,9 @@ |
||
| 39 | 39 | return $this->customise(array('Item' => $item))->renderWith(array('ExplanationPage_view', 'Page')); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $slug |
|
| 44 | + */ |
|
| 42 | 45 | public function getItem($slug) |
| 43 | 46 | { |
| 44 | 47 | return Explanation::get()->filter(array('URLSlug' => $slug))->first(); |