You are here

comment.txt in Statistics Pro 6.2

$view = new view;
$view->name = 'statspro_comment';
$view->description = 'New comments';
$view->tag = 'Statistics Pro';
$view->view_php = '';
$view->base_table = 'statspro';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'day' => array(
    'label' => 'Date',
    'date_format' => 'custom',
    'custom_date_format' => 'd. F Y',
    'exclude' => 0,
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'relationship' => 'none',
  ),
  'comment' => array(
    'label' => 'Comments',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'comment',
    'table' => 'statspro',
    'field' => 'comment',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'comment_1' => array(
    'label' => 'Trend',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => ',',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'comment_1',
    'table' => 'statspro',
    'field' => 'comment',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'trend',
    'graph_size' => '',
  ),
  'comment_2' => array(
    'label' => 'Amount',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'comment_2',
    'table' => 'statspro',
    'field' => 'comment',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('sorts', array(
  'day' => array(
    'order' => 'DESC',
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'perm',
  'perm' => 'access statistics pro reports',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('title', 'Statistics Pro');
$handler->override_option('header', 'New comments.');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('items_per_page', 20);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'desc',
  'columns' => array(
    'day' => 'day',
    'comment' => 'comment',
    'comment_1' => 'comment_1',
    'comment_2' => 'comment_2',
  ),
  'info' => array(
    'day' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'comment' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'comment_1' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'comment_2' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'day',
));

$handler = $view->new_display('page', 'New comments table', 'page_1');
$handler->override_option('path', 'admin/reports/statspro/comment');
$handler->override_option('menu', array(
  'type' => 'tab',
  'title' => 'Comments',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));

$handler = $view->new_display('attachment', 'New comments chart', 'attachment_1');
$handler->override_option('fields', array(
  'day' => array(
    'label' => 'Date',
    'date_format' => 'custom',
    'custom_date_format' => 'd. F Y',
    'exclude' => 0,
    'id' => 'day',
    'table' => 'statspro',
    'field' => 'day',
    'relationship' => 'none',
  ),
  'comment' => array(
    'label' => 'Comments',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'comment',
    'table' => 'statspro',
    'field' => 'comment',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
));
$handler->override_option('style_plugin', 'charts');
$handler->override_option('style_options', array(
  'views_charts_series_fields' => array(
    'comment' => 'comment',
  ),
  'views_charts_x_labels' => 'day',
  'width' => '700',
  'height' => '200',
  'engine' => 'bluff',
  'type' => array(
    'amcharts' => 'line',
    'bluff' => 'line',
    'open-flash' => 'line',
  ),
  'wmode' => 'window',
  'y_min' => '0',
  'y_legend' => '',
));
$handler->override_option('attachment_position', 'after');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('inherit_pager', FALSE);
$handler->override_option('render_pager', TRUE);
$handler->override_option('displays', array(
  'page_1' => 'page_1',
  'default' => 0,
));

File

views_exported/comment.txt
View source
  1. $view = new view;
  2. $view->name = 'statspro_comment';
  3. $view->description = 'New comments';
  4. $view->tag = 'Statistics Pro';
  5. $view->view_php = '';
  6. $view->base_table = 'statspro';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12. 'day' => array(
  13. 'label' => 'Date',
  14. 'date_format' => 'custom',
  15. 'custom_date_format' => 'd. F Y',
  16. 'exclude' => 0,
  17. 'id' => 'day',
  18. 'table' => 'statspro',
  19. 'field' => 'day',
  20. 'relationship' => 'none',
  21. ),
  22. 'comment' => array(
  23. 'label' => 'Comments',
  24. 'set_precision' => FALSE,
  25. 'precision' => 0,
  26. 'decimal' => '.',
  27. 'separator' => '.',
  28. 'prefix' => '',
  29. 'suffix' => '',
  30. 'exclude' => 0,
  31. 'id' => 'comment',
  32. 'table' => 'statspro',
  33. 'field' => 'comment',
  34. 'override' => array(
  35. 'button' => 'Override',
  36. ),
  37. 'relationship' => 'none',
  38. 'display_mode' => 'graph',
  39. 'graph_size' => '350',
  40. ),
  41. 'comment_1' => array(
  42. 'label' => 'Trend',
  43. 'set_precision' => FALSE,
  44. 'precision' => 0,
  45. 'decimal' => '.',
  46. 'separator' => ',',
  47. 'prefix' => '',
  48. 'suffix' => '',
  49. 'exclude' => 0,
  50. 'id' => 'comment_1',
  51. 'table' => 'statspro',
  52. 'field' => 'comment',
  53. 'override' => array(
  54. 'button' => 'Override',
  55. ),
  56. 'relationship' => 'none',
  57. 'display_mode' => 'trend',
  58. 'graph_size' => '',
  59. ),
  60. 'comment_2' => array(
  61. 'label' => 'Amount',
  62. 'set_precision' => FALSE,
  63. 'precision' => 0,
  64. 'decimal' => '.',
  65. 'separator' => '.',
  66. 'prefix' => '',
  67. 'suffix' => '',
  68. 'exclude' => 0,
  69. 'id' => 'comment_2',
  70. 'table' => 'statspro',
  71. 'field' => 'comment',
  72. 'override' => array(
  73. 'button' => 'Override',
  74. ),
  75. 'relationship' => 'none',
  76. 'display_mode' => 'text',
  77. 'graph_size' => '',
  78. ),
  79. ));
  80. $handler->override_option('sorts', array(
  81. 'day' => array(
  82. 'order' => 'DESC',
  83. 'id' => 'day',
  84. 'table' => 'statspro',
  85. 'field' => 'day',
  86. 'override' => array(
  87. 'button' => 'Override',
  88. ),
  89. 'relationship' => 'none',
  90. ),
  91. ));
  92. $handler->override_option('access', array(
  93. 'type' => 'perm',
  94. 'perm' => 'access statistics pro reports',
  95. ));
  96. $handler->override_option('cache', array(
  97. 'type' => 'none',
  98. ));
  99. $handler->override_option('title', 'Statistics Pro');
  100. $handler->override_option('header', 'New comments.');
  101. $handler->override_option('header_format', '1');
  102. $handler->override_option('header_empty', 0);
  103. $handler->override_option('items_per_page', 20);
  104. $handler->override_option('use_pager', '1');
  105. $handler->override_option('style_plugin', 'table');
  106. $handler->override_option('style_options', array(
  107. 'grouping' => '',
  108. 'override' => 1,
  109. 'sticky' => 0,
  110. 'order' => 'desc',
  111. 'columns' => array(
  112. 'day' => 'day',
  113. 'comment' => 'comment',
  114. 'comment_1' => 'comment_1',
  115. 'comment_2' => 'comment_2',
  116. ),
  117. 'info' => array(
  118. 'day' => array(
  119. 'sortable' => 1,
  120. 'separator' => '',
  121. ),
  122. 'comment' => array(
  123. 'sortable' => 0,
  124. 'separator' => '',
  125. ),
  126. 'comment_1' => array(
  127. 'sortable' => 0,
  128. 'separator' => '',
  129. ),
  130. 'comment_2' => array(
  131. 'sortable' => 1,
  132. 'separator' => '',
  133. ),
  134. ),
  135. 'default' => 'day',
  136. ));
  137. $handler = $view->new_display('page', 'New comments table', 'page_1');
  138. $handler->override_option('path', 'admin/reports/statspro/comment');
  139. $handler->override_option('menu', array(
  140. 'type' => 'tab',
  141. 'title' => 'Comments',
  142. 'description' => '',
  143. 'weight' => '0',
  144. 'name' => 'navigation',
  145. ));
  146. $handler->override_option('tab_options', array(
  147. 'type' => 'none',
  148. 'title' => '',
  149. 'description' => '',
  150. 'weight' => 0,
  151. 'name' => 'navigation',
  152. ));
  153. $handler = $view->new_display('attachment', 'New comments chart', 'attachment_1');
  154. $handler->override_option('fields', array(
  155. 'day' => array(
  156. 'label' => 'Date',
  157. 'date_format' => 'custom',
  158. 'custom_date_format' => 'd. F Y',
  159. 'exclude' => 0,
  160. 'id' => 'day',
  161. 'table' => 'statspro',
  162. 'field' => 'day',
  163. 'relationship' => 'none',
  164. ),
  165. 'comment' => array(
  166. 'label' => 'Comments',
  167. 'set_precision' => FALSE,
  168. 'precision' => 0,
  169. 'decimal' => '.',
  170. 'separator' => '.',
  171. 'prefix' => '',
  172. 'suffix' => '',
  173. 'exclude' => 0,
  174. 'id' => 'comment',
  175. 'table' => 'statspro',
  176. 'field' => 'comment',
  177. 'override' => array(
  178. 'button' => 'Override',
  179. ),
  180. 'relationship' => 'none',
  181. 'display_mode' => 'graph',
  182. 'graph_size' => '350',
  183. ),
  184. ));
  185. $handler->override_option('style_plugin', 'charts');
  186. $handler->override_option('style_options', array(
  187. 'views_charts_series_fields' => array(
  188. 'comment' => 'comment',
  189. ),
  190. 'views_charts_x_labels' => 'day',
  191. 'width' => '700',
  192. 'height' => '200',
  193. 'engine' => 'bluff',
  194. 'type' => array(
  195. 'amcharts' => 'line',
  196. 'bluff' => 'line',
  197. 'open-flash' => 'line',
  198. ),
  199. 'wmode' => 'window',
  200. 'y_min' => '0',
  201. 'y_legend' => '',
  202. ));
  203. $handler->override_option('attachment_position', 'after');
  204. $handler->override_option('inherit_arguments', TRUE);
  205. $handler->override_option('inherit_exposed_filters', FALSE);
  206. $handler->override_option('inherit_pager', FALSE);
  207. $handler->override_option('render_pager', TRUE);
  208. $handler->override_option('displays', array(
  209. 'page_1' => 'page_1',
  210. 'default' => 0,
  211. ));