PluginProbe
CSS & JavaScript Toolbox / 6.0
CSS & JavaScript Toolbox v6.0
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 / xblock.php

xblock.php in CSS & JavaScript Toolbox 6.0, at models/xblock.php

36 lines 688 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 * This file is a future replacement for block.php file.
8 *
9 * The controller @block.php file is deprecated and all the feature actions
10 * for a single block should be defined here!
11 *
12 */
13 class CJTXBlockModel {
14
15 /**
16 * put your comment there...
17 *
18 * @var mixed
19 */
20 public $inputs;
21
22 /**
23 * Query Block based on the passed paramaters.
24 *
25 */
26 public function getBlockBy() {
27 // import dependencies.
28 cssJSToolbox::import('framework:db:mysql:xtable.inc.php');
29 return CJTxTable::getInstance('block')
30 ->set($this->inputs['filter']['field'], $this->inputs['filter']['value'])
31 ->load(array($this->inputs['filter']['field']))
32 ->getData();
33 }
34
35 } // End class.
36