PluginProbe
CSS & JavaScript Toolbox / 11.3
CSS & JavaScript Toolbox v11.3
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 / fields / template-owners.php

template-owners.php in CSS & JavaScript Toolbox 11.3, at models/fields/template-owners.php

28 lines 641 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 // Import dependencies.
7 cssJSToolbox::import('framework:html:list.php', 'framework:db:mysql:xtable.inc.php');
8
9 /**
10 *
11 */
12 class CJTTemplateOwnersField extends CJTListField {
13
14 /**
15 * put your comment there...
16 *
17 */
18 protected function prepareItems() {
19 // Query CJT Authors + Wordpress build-in local users.
20 $query = ' SELECT o.ID id, o.user_login `text`
21 FROM #__wordpress_users o
22 RIGHT JOIN #__cjtoolbox_templates t
23 ON o.ID = t.ownerId ORDER BY `text`';
24 // Get all exists authors
25 $this->items = cssJSToolbox::getInstance()->getDBDriver()->select($query);
26 }
27
28 } // End class.