install.sql 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. -- TABLE: entries
  2. CREATE TABLE IF NOT EXISTS `bx_classes_classes` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `author` int(11) NOT NULL,
  5. `added` int(11) NOT NULL,
  6. `changed` int(11) NOT NULL,
  7. `published` int(11) NOT NULL,
  8. `module_id` int(10) unsigned NOT NULL,
  9. `order` int(11) NOT NULL,
  10. `start_date` int(11) NOT NULL,
  11. `end_date` int(11) NOT NULL,
  12. `thumb` int(11) NOT NULL,
  13. `title` varchar(255) NOT NULL,
  14. `avail` int(11) NOT NULL,
  15. `cmts` int(11) NOT NULL,
  16. `completed_when` int(11) NOT NULL,
  17. `text` mediumtext NOT NULL,
  18. `labels` text NOT NULL,
  19. `location` text NOT NULL,
  20. `views` int(11) NOT NULL default '0',
  21. `rate` float NOT NULL default '0',
  22. `votes` int(11) NOT NULL default '0',
  23. `rrate` float NOT NULL default '0',
  24. `rvotes` int(11) NOT NULL default '0',
  25. `score` int(11) NOT NULL default '0',
  26. `sc_up` int(11) NOT NULL default '0',
  27. `sc_down` int(11) NOT NULL default '0',
  28. `favorites` int(11) NOT NULL default '0',
  29. `comments` int(11) NOT NULL default '0',
  30. `reports` int(11) NOT NULL default '0',
  31. `featured` int(11) NOT NULL default '0',
  32. `allow_view_to` varchar(16) NOT NULL DEFAULT '3',
  33. `status` enum('active','awaiting','failed','hidden') NOT NULL DEFAULT 'active',
  34. `status_admin` enum('active','hidden') NOT NULL DEFAULT 'active',
  35. PRIMARY KEY (`id`),
  36. FULLTEXT KEY `title_text` (`title`,`text`)
  37. );
  38. -- TABLE: modules
  39. CREATE TABLE IF NOT EXISTS `bx_classes_modules` (
  40. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  41. `profile_id` int(10) unsigned NOT NULL,
  42. `module_title` varchar(255) NOT NULL,
  43. `author` int(11) NOT NULL,
  44. `added` int(11) NOT NULL,
  45. `changed` int(11) NOT NULL,
  46. `order` int(11) NOT NULL,
  47. PRIMARY KEY (`id`)
  48. );
  49. -- TABLE: status
  50. CREATE TABLE IF NOT EXISTS `bx_classes_statuses` (
  51. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  52. `class_id` int(10) unsigned NOT NULL,
  53. `student_profile_id` int(11) NOT NULL,
  54. `viewed` int(11) NOT NULL,
  55. `replied` int(11) NOT NULL,
  56. PRIMARY KEY (`id`),
  57. UNIQUE `class_student` (`class_id`,`student_profile_id`)
  58. );
  59. -- TABLE: storages & transcoders
  60. CREATE TABLE IF NOT EXISTS `bx_classes_covers` (
  61. `id` int(11) NOT NULL AUTO_INCREMENT,
  62. `profile_id` int(10) unsigned NOT NULL,
  63. `remote_id` varchar(128) NOT NULL,
  64. `path` varchar(255) NOT NULL,
  65. `file_name` varchar(255) NOT NULL,
  66. `mime_type` varchar(128) NOT NULL,
  67. `ext` varchar(32) NOT NULL,
  68. `size` bigint(20) NOT NULL,
  69. `added` int(11) NOT NULL,
  70. `modified` int(11) NOT NULL,
  71. `private` int(11) NOT NULL,
  72. PRIMARY KEY (`id`),
  73. UNIQUE KEY `remote_id` (`remote_id`)
  74. );
  75. CREATE TABLE IF NOT EXISTS `bx_classes_files` (
  76. `id` int(11) NOT NULL AUTO_INCREMENT,
  77. `profile_id` int(10) unsigned NOT NULL,
  78. `remote_id` varchar(128) NOT NULL,
  79. `path` varchar(255) NOT NULL,
  80. `file_name` varchar(255) NOT NULL,
  81. `mime_type` varchar(128) NOT NULL,
  82. `ext` varchar(32) NOT NULL,
  83. `size` bigint(20) NOT NULL,
  84. `added` int(11) NOT NULL,
  85. `modified` int(11) NOT NULL,
  86. `private` int(11) NOT NULL,
  87. PRIMARY KEY (`id`),
  88. UNIQUE KEY `remote_id` (`remote_id`)
  89. );
  90. CREATE TABLE IF NOT EXISTS `bx_classes_photos` (
  91. `id` int(11) NOT NULL AUTO_INCREMENT,
  92. `profile_id` int(10) unsigned NOT NULL,
  93. `remote_id` varchar(128) NOT NULL,
  94. `path` varchar(255) NOT NULL,
  95. `file_name` varchar(255) NOT NULL,
  96. `mime_type` varchar(128) NOT NULL,
  97. `ext` varchar(32) NOT NULL,
  98. `size` bigint(20) NOT NULL,
  99. `added` int(11) NOT NULL,
  100. `modified` int(11) NOT NULL,
  101. `private` int(11) NOT NULL,
  102. PRIMARY KEY (`id`),
  103. UNIQUE KEY `remote_id` (`remote_id`)
  104. );
  105. CREATE TABLE IF NOT EXISTS `bx_classes_photos_resized` (
  106. `id` int(11) NOT NULL AUTO_INCREMENT,
  107. `profile_id` int(10) unsigned NOT NULL,
  108. `remote_id` varchar(128) NOT NULL,
  109. `path` varchar(255) NOT NULL,
  110. `file_name` varchar(255) NOT NULL,
  111. `mime_type` varchar(128) NOT NULL,
  112. `ext` varchar(32) NOT NULL,
  113. `size` bigint(20) NOT NULL,
  114. `added` int(11) NOT NULL,
  115. `modified` int(11) NOT NULL,
  116. `private` int(11) NOT NULL,
  117. PRIMARY KEY (`id`),
  118. UNIQUE KEY `remote_id` (`remote_id`)
  119. );
  120. CREATE TABLE IF NOT EXISTS `bx_classes_videos` (
  121. `id` int(11) NOT NULL AUTO_INCREMENT,
  122. `profile_id` int(10) unsigned NOT NULL,
  123. `remote_id` varchar(128) NOT NULL,
  124. `path` varchar(255) NOT NULL,
  125. `file_name` varchar(255) NOT NULL,
  126. `mime_type` varchar(128) NOT NULL,
  127. `ext` varchar(32) NOT NULL,
  128. `size` bigint(20) NOT NULL,
  129. `added` int(11) NOT NULL,
  130. `modified` int(11) NOT NULL,
  131. `private` int(11) NOT NULL,
  132. PRIMARY KEY (`id`),
  133. UNIQUE KEY `remote_id` (`remote_id`)
  134. );
  135. CREATE TABLE IF NOT EXISTS `bx_classes_videos_resized` (
  136. `id` int(11) NOT NULL AUTO_INCREMENT,
  137. `profile_id` int(10) unsigned NOT NULL,
  138. `remote_id` varchar(128) NOT NULL,
  139. `path` varchar(255) NOT NULL,
  140. `file_name` varchar(255) NOT NULL,
  141. `mime_type` varchar(128) NOT NULL,
  142. `ext` varchar(32) NOT NULL,
  143. `size` bigint(20) NOT NULL,
  144. `added` int(11) NOT NULL,
  145. `modified` int(11) NOT NULL,
  146. `private` int(11) NOT NULL,
  147. PRIMARY KEY (`id`),
  148. UNIQUE KEY `remote_id` (`remote_id`)
  149. );
  150. -- TABLE: comments
  151. CREATE TABLE IF NOT EXISTS `bx_classes_cmts` (
  152. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  153. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  154. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  155. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  156. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  157. `cmt_level` int(11) NOT NULL DEFAULT '0',
  158. `cmt_text` text NOT NULL,
  159. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  160. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  161. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  162. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  163. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  164. PRIMARY KEY (`cmt_id`),
  165. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  166. FULLTEXT KEY `search_fields` (`cmt_text`)
  167. );
  168. CREATE TABLE IF NOT EXISTS `bx_classes_cmts_notes` (
  169. `cmt_id` int(11) NOT NULL AUTO_INCREMENT,
  170. `cmt_parent_id` int(11) NOT NULL DEFAULT '0',
  171. `cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
  172. `cmt_object_id` int(11) NOT NULL DEFAULT '0',
  173. `cmt_author_id` int(11) NOT NULL DEFAULT '0',
  174. `cmt_level` int(11) NOT NULL DEFAULT '0',
  175. `cmt_text` text NOT NULL,
  176. `cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
  177. `cmt_rate` int(11) NOT NULL DEFAULT '0',
  178. `cmt_rate_count` int(11) NOT NULL DEFAULT '0',
  179. `cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
  180. `cmt_replies` int(11) NOT NULL DEFAULT '0',
  181. PRIMARY KEY (`cmt_id`),
  182. KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
  183. FULLTEXT KEY `search_fields` (`cmt_text`)
  184. );
  185. -- TABLE: votes
  186. CREATE TABLE IF NOT EXISTS `bx_classes_votes` (
  187. `object_id` int(11) NOT NULL default '0',
  188. `count` int(11) NOT NULL default '0',
  189. `sum` int(11) NOT NULL default '0',
  190. UNIQUE KEY `object_id` (`object_id`)
  191. );
  192. CREATE TABLE IF NOT EXISTS `bx_classes_votes_track` (
  193. `id` int(11) NOT NULL AUTO_INCREMENT,
  194. `object_id` int(11) NOT NULL default '0',
  195. `author_id` int(11) NOT NULL default '0',
  196. `author_nip` int(11) unsigned NOT NULL default '0',
  197. `value` tinyint(4) NOT NULL default '0',
  198. `date` int(11) NOT NULL default '0',
  199. PRIMARY KEY (`id`),
  200. KEY `vote` (`object_id`, `author_nip`)
  201. );
  202. CREATE TABLE IF NOT EXISTS `bx_classes_reactions` (
  203. `object_id` int(11) NOT NULL default '0',
  204. `reaction` varchar(32) NOT NULL default '',
  205. `count` int(11) NOT NULL default '0',
  206. `sum` int(11) NOT NULL default '0',
  207. UNIQUE KEY `reaction` (`object_id`, `reaction`)
  208. );
  209. CREATE TABLE IF NOT EXISTS `bx_classes_reactions_track` (
  210. `id` int(11) NOT NULL AUTO_INCREMENT,
  211. `object_id` int(11) NOT NULL default '0',
  212. `author_id` int(11) NOT NULL default '0',
  213. `author_nip` int(11) unsigned NOT NULL default '0',
  214. `reaction` varchar(32) NOT NULL default '',
  215. `value` tinyint(4) NOT NULL default '0',
  216. `date` int(11) NOT NULL default '0',
  217. PRIMARY KEY (`id`),
  218. KEY `vote` (`object_id`, `author_nip`)
  219. );
  220. -- TABLE: views
  221. CREATE TABLE `bx_classes_views_track` (
  222. `object_id` int(11) NOT NULL default '0',
  223. `viewer_id` int(11) NOT NULL default '0',
  224. `viewer_nip` int(11) unsigned NOT NULL default '0',
  225. `date` int(11) NOT NULL default '0',
  226. KEY `id` (`object_id`,`viewer_id`,`viewer_nip`)
  227. );
  228. -- TABLE: metas
  229. CREATE TABLE `bx_classes_meta_keywords` (
  230. `object_id` int(10) unsigned NOT NULL,
  231. `keyword` varchar(255) NOT NULL,
  232. KEY `object_id` (`object_id`),
  233. KEY `keyword` (`keyword`)
  234. );
  235. CREATE TABLE `bx_classes_meta_mentions` (
  236. `object_id` int(10) unsigned NOT NULL,
  237. `profile_id` int(10) unsigned NOT NULL,
  238. KEY `object_id` (`object_id`),
  239. KEY `profile_id` (`profile_id`)
  240. );
  241. CREATE TABLE `bx_classes_meta_locations` (
  242. `object_id` int(10) unsigned NOT NULL,
  243. `lat` double NOT NULL,
  244. `lng` double NOT NULL,
  245. `country` varchar(2) NOT NULL,
  246. `state` varchar(255) NOT NULL,
  247. `city` varchar(255) NOT NULL,
  248. `zip` varchar(255) NOT NULL,
  249. `street` varchar(255) NOT NULL,
  250. `street_number` varchar(255) NOT NULL,
  251. PRIMARY KEY (`object_id`),
  252. KEY `country_state_city` (`country`,`state`(8),`city`(8))
  253. );
  254. -- TABLE: reports
  255. CREATE TABLE IF NOT EXISTS `bx_classes_reports` (
  256. `object_id` int(11) NOT NULL default '0',
  257. `count` int(11) NOT NULL default '0',
  258. UNIQUE KEY `object_id` (`object_id`)
  259. );
  260. CREATE TABLE IF NOT EXISTS `bx_classes_reports_track` (
  261. `id` int(11) NOT NULL AUTO_INCREMENT,
  262. `object_id` int(11) NOT NULL default '0',
  263. `author_id` int(11) NOT NULL default '0',
  264. `author_nip` int(11) unsigned NOT NULL default '0',
  265. `type` varchar(32) NOT NULL default '',
  266. `text` text NOT NULL default '',
  267. `date` int(11) NOT NULL default '0',
  268. PRIMARY KEY (`id`),
  269. KEY `report` (`object_id`, `author_nip`)
  270. );
  271. -- TABLE: favorites
  272. CREATE TABLE `bx_classes_favorites_track` (
  273. `object_id` int(11) NOT NULL default '0',
  274. `author_id` int(11) NOT NULL default '0',
  275. `date` int(11) NOT NULL default '0',
  276. KEY `id` (`object_id`,`author_id`)
  277. );
  278. -- TABLE: scores
  279. CREATE TABLE IF NOT EXISTS `bx_classes_scores` (
  280. `object_id` int(11) NOT NULL default '0',
  281. `count_up` int(11) NOT NULL default '0',
  282. `count_down` int(11) NOT NULL default '0',
  283. UNIQUE KEY `object_id` (`object_id`)
  284. );
  285. CREATE TABLE IF NOT EXISTS `bx_classes_scores_track` (
  286. `id` int(11) NOT NULL AUTO_INCREMENT,
  287. `object_id` int(11) NOT NULL default '0',
  288. `author_id` int(11) NOT NULL default '0',
  289. `author_nip` int(11) unsigned NOT NULL default '0',
  290. `type` varchar(8) NOT NULL default '',
  291. `date` int(11) NOT NULL default '0',
  292. PRIMARY KEY (`id`),
  293. KEY `vote` (`object_id`, `author_nip`)
  294. );
  295. -- TABLE: polls
  296. CREATE TABLE IF NOT EXISTS `bx_classes_polls` (
  297. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  298. `author_id` int(11) NOT NULL default '0',
  299. `content_id` int(11) NOT NULL default '0',
  300. `text` text NOT NULL,
  301. PRIMARY KEY (`id`),
  302. KEY `content_id` (`content_id`),
  303. FULLTEXT KEY `search_fields` (`text`)
  304. );
  305. CREATE TABLE IF NOT EXISTS `bx_classes_polls_answers` (
  306. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  307. `poll_id` int(11) unsigned NOT NULL default '0',
  308. `title` varchar(255) NOT NULL,
  309. `rate` float NOT NULL default '0',
  310. `votes` int(11) NOT NULL default '0',
  311. `order` int(11) NOT NULL default '0',
  312. PRIMARY KEY (`id`),
  313. KEY `poll_id` (`poll_id`),
  314. FULLTEXT KEY `title` (`title`)
  315. );
  316. CREATE TABLE IF NOT EXISTS `bx_classes_polls_answers_votes` (
  317. `object_id` int(11) NOT NULL default '0',
  318. `count` int(11) NOT NULL default '0',
  319. `sum` int(11) NOT NULL default '0',
  320. UNIQUE KEY `object_id` (`object_id`)
  321. );
  322. CREATE TABLE IF NOT EXISTS `bx_classes_polls_answers_votes_track` (
  323. `id` int(11) NOT NULL AUTO_INCREMENT,
  324. `object_id` int(11) NOT NULL default '0',
  325. `author_id` int(11) NOT NULL default '0',
  326. `author_nip` int(11) unsigned NOT NULL default '0',
  327. `value` tinyint(4) NOT NULL default '0',
  328. `date` int(11) NOT NULL default '0',
  329. PRIMARY KEY (`id`),
  330. KEY `vote` (`object_id`, `author_nip`)
  331. );
  332. -- STORAGES & TRANSCODERS
  333. SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
  334. INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
  335. ('bx_classes_covers', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_covers', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  336. ('bx_classes_photos', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_photos', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  337. ('bx_classes_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_photos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
  338. ('bx_classes_videos', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_videos', 'allow-deny', 'avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
  339. ('bx_classes_videos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_videos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png,avi,flv,mpg,mpeg,wmv,mp4,m4v,mov,qt,divx,xvid,3gp,3g2,webm,mkv,ogv,ogg,rm,rmvb,asf,drc', '', 0, 0, 0, 0, 0, 0),
  340. ('bx_classes_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_classes_files', 'deny-allow', '', 'action,apk,app,bat,bin,cmd,com,command,cpl,csh,exe,gadget,inf,ins,inx,ipa,isu,job,jse,ksh,lnk,msc,msi,msp,mst,osx,out,paf,pif,prg,ps1,reg,rgs,run,sct,shb,shs,u3p,vb,vbe,vbs,vbscript,workflow,ws,wsf', 0, 0, 0, 0, 0, 0);
  341. INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`, `override_class_name`, `override_class_file`) VALUES
  342. ('bx_classes_preview', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_covers";}', 'no', '1', '2592000', '0', '', ''),
  343. ('bx_classes_gallery', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_covers";}', 'no', '1', '2592000', '0', '', ''),
  344. ('bx_classes_cover', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_covers";}', 'no', '1', '2592000', '0', '', ''),
  345. ('bx_classes_preview_photos', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_photos";}', 'no', '1', '2592000', '0', '', ''),
  346. ('bx_classes_gallery_photos', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_photos";}', 'no', '1', '2592000', '0', '', ''),
  347. ('bx_classes_videos_poster', 'bx_classes_videos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  348. ('bx_classes_videos_poster_preview', 'bx_classes_videos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  349. ('bx_classes_videos_mp4', 'bx_classes_videos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  350. ('bx_classes_videos_mp4_hd', 'bx_classes_videos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_classes_videos";}', 'no', '0', '0', '0', 'BxDolTranscoderVideo', ''),
  351. ('bx_classes_preview_files', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_classes_files";}', 'no', '1', '2592000', '0', '', ''),
  352. ('bx_classes_gallery_files', 'bx_classes_photos_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_classes_files";}', 'no', '1', '2592000', '0', '', '');
  353. INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
  354. ('bx_classes_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  355. ('bx_classes_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
  356. ('bx_classes_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
  357. ('bx_classes_preview_photos', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  358. ('bx_classes_gallery_photos', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
  359. ('bx_classes_videos_poster_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:13:"square_resize";s:1:"1";}', 10),
  360. ('bx_classes_videos_poster_preview', 'Poster', 'a:2:{s:1:"h";s:3:"480";s:10:"force_type";s:3:"jpg";}', 0),
  361. ('bx_classes_videos_poster', 'Poster', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"jpg";}', 0),
  362. ('bx_classes_videos_mp4', 'Mp4', 'a:2:{s:1:"h";s:3:"318";s:10:"force_type";s:3:"mp4";}', 0),
  363. ('bx_classes_videos_mp4_hd', 'Mp4', 'a:3:{s:1:"h";s:3:"720";s:13:"video_bitrate";s:4:"1536";s:10:"force_type";s:3:"mp4";}', 0),
  364. ('bx_classes_preview_files', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'),
  365. ('bx_classes_gallery_files', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
  366. -- FORMS: entry (post)
  367. INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  368. ('bx_classes', 'bx_classes', '_bx_classes_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_classes_classes', 'id', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_publish";}', '', 0, 1, 'BxClssFormEntry', 'modules/boonex/classes/classes/BxClssFormEntry.php');
  369. INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
  370. ('bx_classes', 'bx_classes_entry_add', 'bx_classes', 0, '_bx_classes_form_entry_display_add'),
  371. ('bx_classes', 'bx_classes_entry_delete', 'bx_classes', 0, '_bx_classes_form_entry_display_delete'),
  372. ('bx_classes', 'bx_classes_entry_edit', 'bx_classes', 0, '_bx_classes_form_entry_display_edit'),
  373. ('bx_classes', 'bx_classes_entry_view', 'bx_classes', 1, '_bx_classes_form_entry_display_view');
  374. INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  375. ('bx_classes', 'bx_classes', 'allow_view_to', '', '', 0, 'custom', '_bx_classes_form_entry_input_sys_allow_view_to', '_bx_classes_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  376. ('bx_classes', 'bx_classes', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_classes_form_entry_input_sys_delete_confirm', '_bx_classes_form_entry_input_delete_confirm', '_bx_classes_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_classes_form_entry_input_delete_confirm_error', '', '', 1, 0),
  377. ('bx_classes', 'bx_classes', 'do_publish', '_bx_classes_form_entry_input_do_publish', '', 0, 'submit', '_bx_classes_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  378. ('bx_classes', 'bx_classes', 'do_submit', '_bx_classes_form_entry_input_do_submit', '', 0, 'submit', '_bx_classes_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  379. ('bx_classes', 'bx_classes', 'location', '', '', 0, 'location', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  380. ('bx_classes', 'bx_classes', 'covers', 'a:1:{i:0;s:16:"bx_classes_html5";}', 'a:2:{s:17:"bx_classes_simple";s:26:"_sys_uploader_simple_title";s:16:"bx_classes_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_classes_form_entry_input_sys_covers', '_bx_classes_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  381. ('bx_classes', 'bx_classes', 'pictures', 'a:1:{i:0;s:23:"bx_classes_photos_html5";}', 'a:2:{s:24:"bx_classes_photos_simple";s:26:"_sys_uploader_simple_title";s:23:"bx_classes_photos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_classes_form_entry_input_sys_pictures', '_bx_classes_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  382. ('bx_classes', 'bx_classes', 'videos', 'a:1:{i:0;s:23:"bx_classes_videos_html5";}', 'a:2:{s:24:"bx_classes_videos_simple";s:26:"_sys_uploader_simple_title";s:23:"bx_classes_videos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_classes_form_entry_input_sys_videos', '_bx_classes_form_entry_input_videos', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  383. ('bx_classes', 'bx_classes', 'files', 'a:1:{i:0;s:22:"bx_classes_files_html5";}', 'a:2:{s:23:"bx_classes_files_simple";s:26:"_sys_uploader_simple_title";s:22:"bx_classes_files_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_classes_form_entry_input_sys_files', '_bx_classes_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  384. ('bx_classes', 'bx_classes', 'polls', '', '', 0, 'custom', '_bx_classes_form_entry_input_sys_polls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  385. ('bx_classes', 'bx_classes', 'text', '', '', 0, 'textarea', '_bx_classes_form_entry_input_sys_text', '_bx_classes_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_classes_form_entry_input_text_err', 'XssHtml', '', 1, 0),
  386. ('bx_classes', 'bx_classes', 'title', '', '', 0, 'text', '_bx_classes_form_entry_input_sys_title', '_bx_classes_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_classes_form_entry_input_title_err', 'Xss', '', 1, 0),
  387. ('bx_classes', 'bx_classes', 'avail', '', '#!bx_classes_avail', 0, 'select', '', '_bx_classes_form_entry_input_avail', '', 1, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  388. ('bx_classes', 'bx_classes', 'cmts', '', '#!bx_classes_cmts', 0, 'select', '', '_bx_classes_form_entry_input_cmts', '', 1, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  389. ('bx_classes', 'bx_classes', 'completed_when', '', '#!bx_classes_completed_when', 0, 'select', '', '_bx_classes_form_entry_input_completed_when', '', 1, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  390. ('bx_classes', 'bx_classes', 'module_id', '', '', 0, 'select', '', '_bx_classes_form_entry_input_module', '', 1, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
  391. ('bx_classes', 'bx_classes', 'added', '', '', 0, 'datetime', '_bx_classes_form_entry_input_sys_date_added', '_bx_classes_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  392. ('bx_classes', 'bx_classes', 'changed', '', '', 0, 'datetime', '_bx_classes_form_entry_input_sys_date_changed', '_bx_classes_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  393. ('bx_classes', 'bx_classes', 'start_date', '', '', 0, 'datetime', '', '_bx_classes_form_entry_input_date_start_date', '', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0),
  394. ('bx_classes', 'bx_classes', 'end_date', '', '', 0, 'datetime', '', '_bx_classes_form_entry_input_date_end_date', '', 0, 0, 0, '', '', '', '', '', '', 'DateTimeUtc', '', 1, 0),
  395. ('bx_classes', 'bx_classes', 'attachments', '', '', 0, 'custom', '_bx_classes_form_entry_input_sys_attachments', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  396. ('bx_classes', 'bx_classes', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
  397. ('bx_classes', 'bx_classes', 'anonymous', '', '', 0, 'switcher', '_sys_form_input_sys_anonymous', '_sys_form_input_anonymous', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
  398. INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  399. ('bx_classes_entry_add', 'covers', 2147483647, 1, 1),
  400. ('bx_classes_entry_add', 'module_id', 2147483647, 1, 2),
  401. ('bx_classes_entry_add', 'title', 2147483647, 1, 3),
  402. ('bx_classes_entry_add', 'text', 2147483647, 1, 4),
  403. ('bx_classes_entry_add', 'attachments', 2147483647, 1, 5),
  404. ('bx_classes_entry_add', 'pictures', 2147483647, 1, 6),
  405. ('bx_classes_entry_add', 'videos', 2147483647, 1, 7),
  406. ('bx_classes_entry_add', 'files', 2147483647, 1, 8),
  407. ('bx_classes_entry_add', 'polls', 2147483647, 1, 9),
  408. ('bx_classes_entry_add', 'start_date', 2147483647, 1, 10),
  409. ('bx_classes_entry_add', 'end_date', 2147483647, 1, 11),
  410. ('bx_classes_entry_add', 'completed_when', 2147483647, 1, 12),
  411. ('bx_classes_entry_add', 'avail', 2147483647, 1, 13),
  412. ('bx_classes_entry_add', 'cmts', 2147483647, 1, 14),
  413. ('bx_classes_entry_add', 'allow_view_to', 2147483647, 1, 15),
  414. ('bx_classes_entry_add', 'do_publish', 2147483647, 1, 16),
  415. ('bx_classes_entry_delete', 'delete_confirm', 2147483647, 1, 1),
  416. ('bx_classes_entry_delete', 'do_submit', 2147483647, 1, 2),
  417. ('bx_classes_entry_edit', 'covers', 2147483647, 1, 1),
  418. ('bx_classes_entry_edit', 'module_id', 2147483647, 1, 2),
  419. ('bx_classes_entry_edit', 'title', 2147483647, 1, 3),
  420. ('bx_classes_entry_edit', 'text', 2147483647, 1, 4),
  421. ('bx_classes_entry_edit', 'attachments', 2147483647, 1, 5),
  422. ('bx_classes_entry_edit', 'pictures', 2147483647, 1, 6),
  423. ('bx_classes_entry_edit', 'videos', 2147483647, 1, 7),
  424. ('bx_classes_entry_edit', 'files', 2147483647, 1, 8),
  425. ('bx_classes_entry_edit', 'polls', 2147483647, 1, 9),
  426. ('bx_classes_entry_edit', 'start_date', 2147483647, 1, 10),
  427. ('bx_classes_entry_edit', 'end_date', 2147483647, 1, 11),
  428. ('bx_classes_entry_edit', 'completed_when', 2147483647, 1, 12),
  429. ('bx_classes_entry_edit', 'avail', 2147483647, 1, 13),
  430. ('bx_classes_entry_edit', 'cmts', 2147483647, 1, 14),
  431. ('bx_classes_entry_edit', 'allow_view_to', 2147483647, 1, 15),
  432. ('bx_classes_entry_edit', 'do_submit', 2147483647, 1, 16),
  433. ('bx_classes_entry_view', 'module_id', 2147483647, 1, 1),
  434. ('bx_classes_entry_view', 'added', 2147483647, 1, 2),
  435. ('bx_classes_entry_view', 'changed', 2147483647, 1, 3),
  436. ('bx_classes_entry_view', 'start_date', 2147483647, 1, 4),
  437. ('bx_classes_entry_view', 'end_date', 2147483647, 1, 5);
  438. -- FORMS: poll
  439. INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
  440. ('bx_classes_poll', 'bx_classes', '_bx_classes_form_poll', '', '', 'do_submit', 'bx_classes_polls', 'id', '', '', 'a:1:{s:14:"checker_helper";s:27:"BxClssFormPollCheckerHelper";}', 0, 1, 'BxClssFormPoll', 'modules/boonex/classes/classes/BxClssFormPoll.php');
  441. INSERT INTO `sys_form_displays` (`display_name`, `module`, `object`, `title`, `view_mode`) VALUES
  442. ('bx_classes_poll_add', 'bx_classes', 'bx_classes_poll', '_bx_classes_form_poll_display_add', 0);
  443. INSERT INTO `sys_form_inputs` (`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
  444. ('bx_classes_poll', 'bx_classes', 'text', '', '', 0, 'text', '_bx_classes_form_poll_input_sys_text', '_bx_classes_form_poll_input_text', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_classes_form_poll_input_text_err', 'Xss', '', 1, 0),
  445. ('bx_classes_poll', 'bx_classes', 'answers', '', '', 0, 'custom', '_bx_classes_form_poll_input_sys_answers', '_bx_classes_form_poll_input_answers', '', 1, 0, 0, '', '', '', 'AvailAnswers', '', '_bx_classes_form_poll_input_answers_err', '', '', 1, 0),
  446. ('bx_classes_poll', 'bx_classes', 'controls', '', 'do_submit,do_cancel', 0, 'input_set', '', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  447. ('bx_classes_poll', 'bx_classes', 'do_submit', '_bx_classes_form_poll_input_do_submit', '', 0, 'submit', '_bx_classes_form_poll_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 0, 0),
  448. ('bx_classes_poll', 'bx_classes', 'do_cancel', '_bx_classes_form_poll_input_do_cancel', '', 0, 'button', '_bx_classes_form_poll_input_do_cancel', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:45:"$(''.bx-popup-applied:visible'').dolPopupHide()";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0);
  449. INSERT INTO `sys_form_display_inputs` (`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
  450. ('bx_classes_poll_add', 'text', 2147483647, 1, 1),
  451. ('bx_classes_poll_add', 'answers', 2147483647, 1, 2),
  452. ('bx_classes_poll_add', 'controls', 2147483647, 1, 3),
  453. ('bx_classes_poll_add', 'do_submit', 2147483647, 1, 4),
  454. ('bx_classes_poll_add', 'do_cancel', 2147483647, 1, 5);
  455. -- PRE-VALUES
  456. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  457. ('bx_classes_avail', '_bx_classes_pre_lists_availability', 'bx_classes', '0');
  458. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  459. ('bx_classes_avail', '1', 1, '_bx_classes_avail_always', ''),
  460. ('bx_classes_avail', '2', 2, '_bx_classes_avail_prev_class_completed', ''),
  461. ('bx_classes_avail', '3', 3, '_bx_classes_avail_after_start_date', ''),
  462. ('bx_classes_avail', '4', 4, '_bx_classes_avail_after_start_date_prev_class_completed', '');
  463. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  464. ('bx_classes_cmts', '_bx_classes_pre_lists_cmts', 'bx_classes', '0');
  465. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  466. ('bx_classes_cmts', '1', 1, '_bx_classes_cmts_disabled', ''),
  467. ('bx_classes_cmts', '2', 2, '_bx_classes_cmts_all_shown', '');
  468. INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
  469. ('bx_classes_completed_when', '_bx_classes_pre_lists_completed_when', 'bx_classes', '0');
  470. INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
  471. ('bx_classes_completed_when', '1', 1, '_bx_classes_completed_when_viewed', ''),
  472. ('bx_classes_completed_when', '2', 2, '_bx_classes_completed_when_replied', '');
  473. -- COMMENTS
  474. INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Html`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES
  475. ('bx_classes', 'bx_classes', 'bx_classes_cmts', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-class&id={object_id}', '', 'bx_classes_classes', 'id', 'author', 'title', 'comments', '', ''),
  476. ('bx_classes_notes', 'bx_classes', 'bx_classes_cmts_notes', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-class&id={object_id}', '', 'bx_classes_classes', 'id', 'author', 'title', 'comments', '', '');
  477. -- VOTES
  478. INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
  479. ('bx_classes', 'bx_classes_votes', 'bx_classes_votes_track', '604800', '1', '1', '0', '1', 'bx_classes_classes', 'id', 'author', 'rate', 'votes', '', ''),
  480. ('bx_classes_reactions', 'bx_classes_reactions', 'bx_classes_reactions_track', '604800', '1', '1', '1', '1', 'bx_classes_classes', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', ''),
  481. ('bx_classes_poll_answers', 'bx_classes_polls_answers_votes', 'bx_classes_polls_answers_votes_track', '604800', '1', '1', '0', '1', 'bx_classes_polls_answers', 'id', 'author_id', 'rate', 'votes', 'BxClssVotePollAnswers', 'modules/boonex/classes/classes/BxClssVotePollAnswers.php');
  482. -- SCORES
  483. INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
  484. ('bx_classes', 'bx_classes', 'bx_classes_scores', 'bx_classes_scores_track', '604800', '0', 'bx_classes_classes', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
  485. -- REPORTS
  486. INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `object_comment`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  487. ('bx_classes', 'bx_classes_reports', 'bx_classes_reports_track', '1', 'page.php?i=view-class&id={object_id}', 'bx_classes_notes', 'bx_classes_classes', 'id', 'author', 'reports', '', '');
  488. -- VIEWS
  489. INSERT INTO `sys_objects_view` (`name`, `table_track`, `period`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  490. ('bx_classes', 'bx_classes_views_track', '86400', '1', 'bx_classes_classes', 'id', 'author', 'views', '', '');
  491. -- FAFORITES
  492. INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `is_on`, `is_undo`, `is_public`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
  493. ('bx_classes', 'bx_classes_favorites_track', '1', '1', '1', 'page.php?i=view-class&id={object_id}', 'bx_classes_classes', 'id', 'author', 'favorites', '', '');
  494. -- FEATURED
  495. INSERT INTO `sys_objects_feature` (`name`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES
  496. ('bx_classes', '1', '1', 'page.php?i=view-class&id={object_id}', 'bx_classes_classes', 'id', 'author', 'featured', '', '');
  497. -- CONTENT INFO
  498. INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES
  499. ('bx_classes', '_bx_classes', 'bx_classes', 'added', 'edited', 'deleted', '', ''),
  500. ('bx_classes_cmts', '_bx_classes_cmts', 'bx_classes', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
  501. INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES
  502. ('bx_classes', 'bx_classes_administration', 'id', '', ''),
  503. ('bx_classes', 'bx_classes_common', 'id', '', '');
  504. -- SEARCH EXTENDED
  505. INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
  506. ('bx_classes', 'bx_classes', 'bx_classes', '_bx_classes_search_extended', 1, '', ''),
  507. ('bx_classes_cmts', 'bx_classes_cmts', 'bx_classes', '_bx_classes_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
  508. -- STUDIO: page & widget
  509. INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
  510. (3, 'bx_classes', '_bx_classes', '_bx_classes', 'bx_classes@modules/boonex/classes/|std-icon.svg');
  511. SET @iPageId = LAST_INSERT_ID();
  512. SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
  513. SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
  514. INSERT INTO `sys_std_widgets` (`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
  515. (@iPageId, 'bx_classes', '{url_studio}module.php?name=bx_classes', '', 'bx_classes@modules/boonex/classes/|std-icon.svg', '_bx_classes', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
  516. INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
  517. (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));