* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PrestashopFacebook\Repository; use Db; use DbQuery; class TabRepository { public function hasChildren($tabId) { $sql = new DbQuery(); $sql->select('id_tab'); $sql->from('tab'); $sql->where('`id_parent` = "' . (int) $tabId . '"'); return (bool) Db::getInstance()->getValue($sql); } }