getBlockId(); $params = $this->getTypeParams(); $pinsMap = array(); // Prepare block pinned items. $dbDriver = cssJSToolbox::getInstance()->getDBDriver(); $pinsTable = new CJTBlockPinsTable($dbDriver); $pins = $pinsTable->get(null, array('blockId' => $blockId, 'pin' => $params['group'])); // Create ITEM-ID => VALUE array map for the retrieved pins. foreach ($pins as $pin) { $pinsMap[$pin->value] = true; } // Returns. return $pinsMap; } } // End class.