You are here

pi.txt in Statistics Pro 6.2

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