| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* |
| 8 |
*/ |
| 9 |
class CJT_Models_Block_Assignmentpanel_Auxiliarypinned |
| 10 |
extends CJT_Models_Block_Assignmentpanel_Auxiliarybase { |
| 11 |
|
| 12 |
/** |
| 13 |
* put your comment there... |
| 14 |
* |
| 15 |
*/ |
| 16 |
public function getTotalCount() { |
| 17 |
return count($this->getPinsMap()); |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* put your comment there... |
| 22 |
* |
| 23 |
*/ |
| 24 |
protected function queryItems() { |
| 25 |
// Get list. |
| 26 |
$allItems = $this->getList(); |
| 27 |
$items = array(); |
| 28 |
// Get only assigned items. |
| 29 |
$map = $this->getPinsMap(); |
| 30 |
// Get all aux-items available on the map. |
| 31 |
foreach ($allItems as $id => $item) { |
| 32 |
if (isset($map[dechex($id)])) { |
| 33 |
$items[$id] = $item; |
| 34 |
} |
| 35 |
} |
| 36 |
// Return assigned-only items. |
| 37 |
return $items; |
| 38 |
} |
| 39 |
|
| 40 |
} // End class. |
| 41 |
|