@@ -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 | { |
@@ -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(); |
@@ -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 | { |
@@ -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(); |