| 1 |
<?php |
| 2 |
/** |
| 3 |
* @version $ Id; ?FILE_NAME ?DATE ?TIME ?AUTHOR $ |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* No direct access. |
| 8 |
*/ |
| 9 |
// No Direct Accesss code |
| 10 |
|
| 11 |
/** |
| 12 |
* |
| 13 |
* DESCRIPTION |
| 14 |
* |
| 15 |
* @author ?? |
| 16 |
* @version ?? |
| 17 |
*/ |
| 18 |
class CJTTemplatesLookupView extends CJTView { |
| 19 |
|
| 20 |
/** |
| 21 |
* put your comment there... |
| 22 |
* |
| 23 |
* @var mixed |
| 24 |
*/ |
| 25 |
protected static $displayNames = array |
| 26 |
( |
| 27 |
|
| 28 |
'css' => 'CSS', |
| 29 |
|
| 30 |
'javascript' => 'JavaScript', |
| 31 |
|
| 32 |
'html' => 'HTML', |
| 33 |
|
| 34 |
'php' => 'PHP', |
| 35 |
|
| 36 |
); |
| 37 |
|
| 38 |
/** |
| 39 |
* put your comment there... |
| 40 |
* |
| 41 |
* @var mixed |
| 42 |
*/ |
| 43 |
public $items; |
| 44 |
|
| 45 |
/** |
| 46 |
* put your comment there... |
| 47 |
* |
| 48 |
*/ |
| 49 |
public function display($tpl = null) { |
| 50 |
// Query templates list. |
| 51 |
$this->items = $this->getModel()->getItems(); |
| 52 |
// Display the view. |
| 53 |
echo $this->getTemplate($tpl); |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* put your comment there... |
| 58 |
* |
| 59 |
*/ |
| 60 |
protected function enqueueScripts() { |
| 61 |
// Get JQuery. |
| 62 |
self::useScripts(__CLASS__, |
| 63 |
'jquery-ui-tabs', |
| 64 |
'views:templates:lookup:public:js:{CJT_TEMPLATES-}lookup' |
| 65 |
); |
| 66 |
} |
| 67 |
|
| 68 |
/** |
| 69 |
* put your comment there... |
| 70 |
* |
| 71 |
*/ |
| 72 |
protected function enqueueStyles() { |
| 73 |
self::useStyles(__CLASS__, |
| 74 |
'framework:css:{CJT-}forms', |
| 75 |
'views:templates:lookup:public:css:{CJT-}lookup' |
| 76 |
); |
| 77 |
} |
| 78 |
|
| 79 |
} // End class. |
| 80 |
|
| 81 |
// Hookable!! |
| 82 |
CJTTemplatesLookupView::define('CJTTemplatesLookupView'); |