You are here

node.txt in Statistics Pro 6.2

$view = new view;
$view->name = 'statspro_node';
$view->description = 'Node statistics';
$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',
  ),
  'nnode' => array(
    'label' => 'New nodes',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nnode',
    'table' => 'statspro',
    'field' => 'nnode',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'nnode_1' => array(
    'label' => 'Trend',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nnode_1',
    'table' => 'statspro',
    'field' => 'nnode',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'trend',
    'graph_size' => '',
  ),
  'nnode_2' => array(
    'label' => 'Amount',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nnode_2',
    'table' => 'statspro',
    'field' => 'nnode',
    '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('title', 'Statistics Pro');
$handler->override_option('header', 'New nodes');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', TRUE);
$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',
    'nnode' => 'nnode',
    'nnode_1' => 'nnode_1',
    'nnode_2' => 'nnode_2',
  ),
  'info' => array(
    'day' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'nnode' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nnode_1' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'nnode_2' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'day',
));

$handler = $view->new_display('page', 'Page - new nodes table', 'page_1');
$handler->override_option('path', 'admin/reports/statspro/node');
$handler->override_option('menu', array(
  'type' => 'tab',
  'title' => 'Nodes',
  'description' => '',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));

$handler = $view->new_display('attachment', 'Attachment - changed nodes table', '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',
  ),
  'cnode' => array(
    'label' => 'Changed nodes',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'cnode',
    'table' => 'statspro',
    'field' => 'cnode',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'cnode_1' => array(
    'label' => 'Trend',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'cnode_1',
    'table' => 'statspro',
    'field' => 'cnode',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'trend',
    'graph_size' => '',
  ),
  'cnode_2' => array(
    'label' => 'Amount',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'cnode_2',
    'table' => 'statspro',
    'field' => 'cnode',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('header', 'Changed nodes');
$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,
));

$handler = $view->new_display('attachment', 'New and changed nodes chart', 'attachment_2');
$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',
  ),
  'nnode' => array(
    'label' => 'New nodes',
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'nnode',
    'table' => 'statspro',
    'field' => 'nnode',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'display_mode' => 'graph',
    'graph_size' => '350',
  ),
  'cnode' => array(
    'label' => 'Changed nodes',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'set_precision' => FALSE,
    'precision' => 0,
    'decimal' => '.',
    'separator' => '.',
    'prefix' => '',
    'suffix' => '',
    'exclude' => 0,
    'id' => 'cnode',
    'table' => 'statspro',
    'field' => 'cnode',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'display_mode' => 'text',
    'graph_size' => '',
  ),
));
$handler->override_option('header', 'New and changed nodes');
$handler->override_option('style_plugin', 'charts');
$handler->override_option('style_options', array(
  'views_charts_series_fields' => array(
    'nnode' => 'nnode',
    'cnode' => 'cnode',
  ),
  '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/node.txt
View source
  1. $view = new view;
  2. $view->name = 'statspro_node';
  3. $view->description = 'Node statistics';
  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. 'nnode' => array(
  23. 'label' => 'New nodes',
  24. 'set_precision' => FALSE,
  25. 'precision' => 0,
  26. 'decimal' => '.',
  27. 'separator' => '.',
  28. 'prefix' => '',
  29. 'suffix' => '',
  30. 'exclude' => 0,
  31. 'id' => 'nnode',
  32. 'table' => 'statspro',
  33. 'field' => 'nnode',
  34. 'override' => array(
  35. 'button' => 'Override',
  36. ),
  37. 'relationship' => 'none',
  38. 'display_mode' => 'graph',
  39. 'graph_size' => '350',
  40. ),
  41. 'nnode_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' => 'nnode_1',
  51. 'table' => 'statspro',
  52. 'field' => 'nnode',
  53. 'override' => array(
  54. 'button' => 'Override',
  55. ),
  56. 'relationship' => 'none',
  57. 'display_mode' => 'trend',
  58. 'graph_size' => '',
  59. ),
  60. 'nnode_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' => 'nnode_2',
  70. 'table' => 'statspro',
  71. 'field' => 'nnode',
  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('title', 'Statistics Pro');
  97. $handler->override_option('header', 'New nodes');
  98. $handler->override_option('header_format', '1');
  99. $handler->override_option('header_empty', 0);
  100. $handler->override_option('use_ajax', TRUE);
  101. $handler->override_option('items_per_page', 20);
  102. $handler->override_option('use_pager', '1');
  103. $handler->override_option('style_plugin', 'table');
  104. $handler->override_option('style_options', array(
  105. 'grouping' => '',
  106. 'override' => 1,
  107. 'sticky' => 0,
  108. 'order' => 'desc',
  109. 'columns' => array(
  110. 'day' => 'day',
  111. 'nnode' => 'nnode',
  112. 'nnode_1' => 'nnode_1',
  113. 'nnode_2' => 'nnode_2',
  114. ),
  115. 'info' => array(
  116. 'day' => array(
  117. 'sortable' => 1,
  118. 'separator' => '',
  119. ),
  120. 'nnode' => array(
  121. 'sortable' => 0,
  122. 'separator' => '',
  123. ),
  124. 'nnode_1' => array(
  125. 'sortable' => 0,
  126. 'separator' => '',
  127. ),
  128. 'nnode_2' => array(
  129. 'sortable' => 1,
  130. 'separator' => '',
  131. ),
  132. ),
  133. 'default' => 'day',
  134. ));
  135. $handler = $view->new_display('page', 'Page - new nodes table', 'page_1');
  136. $handler->override_option('path', 'admin/reports/statspro/node');
  137. $handler->override_option('menu', array(
  138. 'type' => 'tab',
  139. 'title' => 'Nodes',
  140. 'description' => '',
  141. 'weight' => '0',
  142. 'name' => 'navigation',
  143. ));
  144. $handler->override_option('tab_options', array(
  145. 'type' => 'none',
  146. 'title' => '',
  147. 'description' => '',
  148. 'weight' => 0,
  149. 'name' => 'navigation',
  150. ));
  151. $handler = $view->new_display('attachment', 'Attachment - changed nodes table', 'attachment_1');
  152. $handler->override_option('fields', array(
  153. 'day' => array(
  154. 'label' => 'Date',
  155. 'date_format' => 'custom',
  156. 'custom_date_format' => 'd. F Y',
  157. 'exclude' => 0,
  158. 'id' => 'day',
  159. 'table' => 'statspro',
  160. 'field' => 'day',
  161. 'relationship' => 'none',
  162. ),
  163. 'cnode' => array(
  164. 'label' => 'Changed nodes',
  165. 'set_precision' => FALSE,
  166. 'precision' => 0,
  167. 'decimal' => '.',
  168. 'separator' => '.',
  169. 'prefix' => '',
  170. 'suffix' => '',
  171. 'exclude' => 0,
  172. 'id' => 'cnode',
  173. 'table' => 'statspro',
  174. 'field' => 'cnode',
  175. 'override' => array(
  176. 'button' => 'Use default',
  177. ),
  178. 'relationship' => 'none',
  179. 'display_mode' => 'graph',
  180. 'graph_size' => '350',
  181. ),
  182. 'cnode_1' => array(
  183. 'label' => 'Trend',
  184. 'set_precision' => FALSE,
  185. 'precision' => 0,
  186. 'decimal' => '.',
  187. 'separator' => '.',
  188. 'prefix' => '',
  189. 'suffix' => '',
  190. 'exclude' => 0,
  191. 'id' => 'cnode_1',
  192. 'table' => 'statspro',
  193. 'field' => 'cnode',
  194. 'override' => array(
  195. 'button' => 'Use default',
  196. ),
  197. 'relationship' => 'none',
  198. 'display_mode' => 'trend',
  199. 'graph_size' => '',
  200. ),
  201. 'cnode_2' => array(
  202. 'label' => 'Amount',
  203. 'set_precision' => FALSE,
  204. 'precision' => 0,
  205. 'decimal' => '.',
  206. 'separator' => '.',
  207. 'prefix' => '',
  208. 'suffix' => '',
  209. 'exclude' => 0,
  210. 'id' => 'cnode_2',
  211. 'table' => 'statspro',
  212. 'field' => 'cnode',
  213. 'override' => array(
  214. 'button' => 'Use default',
  215. ),
  216. 'relationship' => 'none',
  217. 'display_mode' => 'text',
  218. 'graph_size' => '',
  219. ),
  220. ));
  221. $handler->override_option('header', 'Changed nodes');
  222. $handler->override_option('attachment_position', 'after');
  223. $handler->override_option('inherit_arguments', TRUE);
  224. $handler->override_option('inherit_exposed_filters', FALSE);
  225. $handler->override_option('inherit_pager', FALSE);
  226. $handler->override_option('render_pager', TRUE);
  227. $handler->override_option('displays', array(
  228. 'page_1' => 'page_1',
  229. 'default' => 0,
  230. ));
  231. $handler = $view->new_display('attachment', 'New and changed nodes chart', 'attachment_2');
  232. $handler->override_option('fields', array(
  233. 'day' => array(
  234. 'label' => 'Date',
  235. 'date_format' => 'custom',
  236. 'custom_date_format' => 'd. F Y',
  237. 'exclude' => 0,
  238. 'id' => 'day',
  239. 'table' => 'statspro',
  240. 'field' => 'day',
  241. 'relationship' => 'none',
  242. ),
  243. 'nnode' => array(
  244. 'label' => 'New nodes',
  245. 'set_precision' => FALSE,
  246. 'precision' => 0,
  247. 'decimal' => '.',
  248. 'separator' => '.',
  249. 'prefix' => '',
  250. 'suffix' => '',
  251. 'exclude' => 0,
  252. 'id' => 'nnode',
  253. 'table' => 'statspro',
  254. 'field' => 'nnode',
  255. 'override' => array(
  256. 'button' => 'Override',
  257. ),
  258. 'relationship' => 'none',
  259. 'display_mode' => 'graph',
  260. 'graph_size' => '350',
  261. ),
  262. 'cnode' => array(
  263. 'label' => 'Changed nodes',
  264. 'alter' => array(
  265. 'alter_text' => 0,
  266. 'text' => '',
  267. 'make_link' => 0,
  268. 'path' => '',
  269. 'link_class' => '',
  270. 'alt' => '',
  271. 'prefix' => '',
  272. 'suffix' => '',
  273. 'target' => '',
  274. 'help' => '',
  275. 'trim' => 0,
  276. 'max_length' => '',
  277. 'word_boundary' => 1,
  278. 'ellipsis' => 1,
  279. 'html' => 0,
  280. 'strip_tags' => 0,
  281. ),
  282. 'empty' => '',
  283. 'hide_empty' => 0,
  284. 'empty_zero' => 0,
  285. 'set_precision' => FALSE,
  286. 'precision' => 0,
  287. 'decimal' => '.',
  288. 'separator' => '.',
  289. 'prefix' => '',
  290. 'suffix' => '',
  291. 'exclude' => 0,
  292. 'id' => 'cnode',
  293. 'table' => 'statspro',
  294. 'field' => 'cnode',
  295. 'override' => array(
  296. 'button' => 'Use default',
  297. ),
  298. 'relationship' => 'none',
  299. 'display_mode' => 'text',
  300. 'graph_size' => '',
  301. ),
  302. ));
  303. $handler->override_option('header', 'New and changed nodes');
  304. $handler->override_option('style_plugin', 'charts');
  305. $handler->override_option('style_options', array(
  306. 'views_charts_series_fields' => array(
  307. 'nnode' => 'nnode',
  308. 'cnode' => 'cnode',
  309. ),
  310. 'views_charts_x_labels' => 'day',
  311. 'width' => '700',
  312. 'height' => '200',
  313. 'engine' => 'bluff',
  314. 'type' => array(
  315. 'amcharts' => 'line',
  316. 'bluff' => 'line',
  317. 'open-flash' => 'line',
  318. ),
  319. 'wmode' => 'window',
  320. 'y_min' => '0',
  321. 'y_legend' => '',
  322. ));
  323. $handler->override_option('attachment_position', 'after');
  324. $handler->override_option('inherit_arguments', TRUE);
  325. $handler->override_option('inherit_exposed_filters', FALSE);
  326. $handler->override_option('inherit_pager', FALSE);
  327. $handler->override_option('render_pager', TRUE);
  328. $handler->override_option('displays', array(
  329. 'page_1' => 'page_1',
  330. 'default' => 0,
  331. ));