# css-javascript-toolbox/6.1.4/models/block/assignmentpanel/wordpress.php

CSS &amp; JavaScript Toolbox, version 6.1.4. 34 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/6.1.4/code/models/block/assignmentpanel/wordpress.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/6.1.4/raw/models/block/assignmentpanel/wordpress.php
- Modified: 2013-10-04T22:35:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/6.1.4/code/models/block/assignmentpanel/wordpress.php#L10-L20`.

```php
<?php
/**
* 
*/

/**
* 
*/
abstract class CJT_Models_Block_Assignmentpanel_Wordpress
extends CJT_Models_Block_Assignmentpanel_Base {
	
	/**
	* put your comment there...
	* 
	*/
	protected function pinsMap() {
		// Initialize.
		$blockId = $this->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.

```
