| 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 |
|