[TASK] Re-work/simplify copyright header in PHP files - Part 1
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Classes / Hook / RecordListHook.php
1 <?php
2 namespace TYPO3\CMS\SysNote\Hook;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Hook for the list module
19 *
20 * @author Georg Ringer <typo3@ringerge.org>
21 * @author Kai Vogel <kai.vogel@speedprogs.de>
22 */
23 class RecordListHook {
24
25 /**
26 * Add sys_notes as additional content to the footer of the list module
27 *
28 * @param array $params
29 * @param \TYPO3\CMS\Recordlist\RecordList $parentObject
30 * @return string
31 */
32 public function render(array $params = array(), \TYPO3\CMS\Recordlist\RecordList $parentObject) {
33 /** @var $noteBootstrap \TYPO3\CMS\SysNote\Core\Bootstrap */
34 $noteBootstrap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\SysNote\\Core\\Bootstrap');
35 return $noteBootstrap->run('Note', 'list', array('pids' => $parentObject->id));
36 }
37
38 }