Beispiel #1
0
 public function hasTemplates(BaseValues $entity)
 {
     static $cache = array();
     $iblockId = $entity->getIblockId();
     if (!isset($cache[$iblockId])) {
         $templateList = \Freetrix\Iblock\InheritedPropertyTable::getList(array("select" => array("ID"), "filter" => array("=IBLOCK_ID" => $iblockId), "limit" => 1));
         $cache[$iblockId] = is_array($templateList->fetch());
     }
     return $cache[$iblockId];
 }