[TASK] Replace deprecated API calls and label references
[TYPO3CMS/Extensions/languagevisibility.git] / class.tx_languagevisibility_abstractservices.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2014 AOE media (dev@aoe.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 abstract class tx_languagevisibility_abstractservices {
26
27 /**
28 * Method to check if records of a given table support the language-visibility feature.
29 *
30 * @param string $table
31 * @return boolean
32 */
33 public static function isSupportedTable($table) {
34 $tableSupportStatus = in_array($table, tx_languagevisibility_visibilityService::getSupportedTables());
35 return $tableSupportStatus;
36 }
37 }