# css-javascript-toolbox/8.0.3/models/block/assignmentpanel/auxiliarypinned.php

CSS &amp; JavaScript Toolbox, version 8.0.3. 41 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.3/code/models/block/assignmentpanel/auxiliarypinned.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.3/raw/models/block/assignmentpanel/auxiliarypinned.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/8.0.3/code/models/block/assignmentpanel/auxiliarypinned.php#L10-L20`.

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

/**
* 
*/
class CJT_Models_Block_Assignmentpanel_Auxiliarypinned
extends CJT_Models_Block_Assignmentpanel_Auxiliarybase {
	
	/**
	* put your comment there...
	* 
	*/
	public function getTotalCount() {
		return count($this->getPinsMap());
	}

	/**
	* put your comment there...
	* 
	*/
	protected function queryItems() {
		// Get list.
		$allItems = $this->getList();
		$items = array();
		// Get only assigned items.
		$map = $this->getPinsMap();
		// Get all aux-items available on the map.
		foreach ($allItems as $id => $item) {
			if (isset($map[dechex($id)])) {
				$items[$id] = $item;
			}
		}
		// Return assigned-only items.
		return $items;
	}

} // End class.

```
