PluginProbe
CSS & JavaScript Toolbox / 12.0.4
CSS & JavaScript Toolbox v12.0.4
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / models / block / assignmentpanel / wordpress.php

wordpress.php in CSS & JavaScript Toolbox 12.0.4, at models/block/assignmentpanel/wordpress.php

34 lines 729 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 */
5
6 /**
7 *
8 */
9 abstract class CJT_Models_Block_Assignmentpanel_Wordpress
10 extends CJT_Models_Block_Assignmentpanel_Base {
11
12 /**
13 * put your comment there...
14 *
15 */
16 protected function pinsMap() {
17 // Initialize.
18 $blockId = $this->getBlockId();
19 $params = $this->getTypeParams();
20 $pinsMap = array();
21 // Prepare block pinned items.
22 $dbDriver = cssJSToolbox::getInstance()->getDBDriver();
23 $pinsTable = new CJTBlockPinsTable($dbDriver);
24 $pins = $pinsTable->get(null, array('blockId' => $blockId, 'pin' => $params['group']));
25 // Create ITEM-ID => VALUE array map for the retrieved pins.
26 foreach ($pins as $pin) {
27 $pinsMap[$pin->value] = true;
28 }
29 // Returns.
30 return $pinsMap;
31 }
32
33 } // End class.
34