| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: project_issue_all_projects.view.php,v 1.1 2009/06/18 03:38:43 dww Exp $ 3 4 /** 5 * @file 6 * Issue queue across all projects. 7 */ 8 9 $view = new view; 10 $view->name = 'project_issue_all_projects'; 11 $view->description = 'Project issues for all projects'; 12 $view->tag = 'Project issue'; 13 $view->view_php = ''; 14 $view->base_table = 'node'; 15 $view->is_cacheable = FALSE; 16 $view->api_version = 2; 17 $view->disabled = FALSE; 18 $handler = $view->new_display('default', 'Defaults', 'default'); 19 $handler->override_option('relationships', array( 20 'assigned' => array( 21 'label' => 'Assigned user', 22 'required' => 1, 23 'id' => 'assigned', 24 'table' => 'project_issues', 25 'field' => 'assigned', 26 'relationship' => 'none', 27 ), 28 'rid' => array( 29 'label' => 'Version', 30 'required' => 0, 31 'id' => 'rid', 32 'table' => 'project_issues', 33 'field' => 'rid', 34 'relationship' => 'none', 35 ), 36 'pid' => array( 37 'label' => 'Project node', 38 'required' => 1, 39 'id' => 'pid', 40 'table' => 'project_issues', 41 'field' => 'pid', 42 ), 43 )); 44 $fields = array( 45 'project_issue_queue' => array( 46 'label' => 'Project', 47 'link_type' => 'issues', 48 'exclude' => 0, 49 'id' => 'project_issue_queue', 50 'table' => 'node', 51 'field' => 'project_issue_queue', 52 'relationship' => 'pid', 53 ), 54 'title' => array( 55 'label' => 'Summary', 56 'link_to_node' => 1, 57 'exclude' => 0, 58 'id' => 'title', 59 'table' => 'node', 60 'field' => 'title', 61 'relationship' => 'none', 62 ), 63 'timestamp' => array( 64 'label' => '', 65 'alter' => array(), 66 'link_to_node' => 0, 67 'comments' => 0, 68 'exclude' => 0, 69 'id' => 'timestamp', 70 'table' => 'history_user', 71 'field' => 'timestamp', 72 'relationship' => 'none', 73 ), 74 'sid' => array( 75 'id' => 'sid', 76 'table' => 'project_issues', 77 'field' => 'sid', 78 ), 79 'priority' => array( 80 'id' => 'priority', 81 'table' => 'project_issues', 82 'field' => 'priority', 83 ), 84 'category' => array( 85 'label' => 'Category', 86 'link_to_node' => 0, 87 'exclude' => 0, 88 'id' => 'category', 89 'table' => 'project_issues', 90 'field' => 'category', 91 'relationship' => 'none', 92 ), 93 'comment_count' => array( 94 'label' => 'Replies', 95 'set_precision' => FALSE, 96 'precision' => 0, 97 'decimal' => '.', 98 'separator' => ',', 99 'prefix' => '', 100 'suffix' => '', 101 'exclude' => 0, 102 'id' => 'comment_count', 103 'table' => 'node_comment_statistics', 104 'field' => 'comment_count', 105 'relationship' => 'none', 106 ), 107 'new_comments' => array( 108 'label' => 'New replies', 109 'set_precision' => FALSE, 110 'precision' => 0, 111 'decimal' => '.', 112 'separator' => ',', 113 'prefix' => '', 114 'suffix' => ' new', 115 'link_to_comment' => 1, 116 'no_empty' => 1, 117 'exclude' => 0, 118 'id' => 'new_comments', 119 'table' => 'node', 120 'field' => 'new_comments', 121 'relationship' => 'none', 122 ), 123 'last_comment_timestamp' => array( 124 'label' => 'Last updated', 125 'date_format' => 'raw time ago', 126 'custom_date_format' => '', 127 'exclude' => 0, 128 'id' => 'last_comment_timestamp', 129 'table' => 'node_comment_statistics', 130 'field' => 'last_comment_timestamp', 131 'relationship' => 'none', 132 ), 133 'name' => array( 134 'label' => 'Assigned to', 135 'link_to_user' => 1, 136 'overwrite_anonymous' => 1, 137 'anonymous_text' => '', 138 'exclude' => 0, 139 'id' => 'name', 140 'table' => 'users', 141 'field' => 'name', 142 'relationship' => 'assigned', 143 ), 144 ); 145 if (module_exists('search')) { 146 $fields['score'] = array( 147 'label' => 'Score', 148 'alter' => array(), 149 'set_precision' => 1, 150 'precision' => '3', 151 'decimal' => '.', 152 'separator' => ',', 153 'prefix' => '', 154 'suffix' => '', 155 'alternate_sort' => 'last_comment_timestamp', 156 'alternate_order' => 'desc', 157 'exclude' => 0, 158 'id' => 'score', 159 'table' => 'search_index', 160 'field' => 'score', 161 'relationship' => 'none', 162 ); 163 } 164 $handler->override_option('fields', $fields); 165 $sorts['last_comment_timestamp'] = array( 166 'order' => 'DESC', 167 'granularity' => 'second', 168 'id' => 'last_comment_timestamp', 169 'table' => 'node_comment_statistics', 170 'field' => 'last_comment_timestamp', 171 'relationship' => 'none', 172 ); 173 if (module_exists('search')) { 174 $sorts['score'] = array( 175 'order' => 'DESC', 176 'id' => 'score', 177 'table' => 'search_index', 178 'field' => 'score', 179 'relationship' => 'none', 180 ); 181 } 182 $handler->override_option('sorts', $sorts); 183 $filters = array( 184 'status_extra' => array( 185 'operator' => '=', 186 'value' => '', 187 'group' => '0', 188 'exposed' => FALSE, 189 'expose' => array( 190 'operator' => FALSE, 191 'label' => '', 192 ), 193 'id' => 'status_extra', 194 'table' => 'node', 195 'field' => 'status_extra', 196 'relationship' => 'none', 197 ), 198 'pid' => array( 199 'operator' => 'in', 200 'value' => '', 201 'group' => '0', 202 'exposed' => TRUE, 203 'expose' => array( 204 'operator' => 'pid_op', 205 'label' => 'Project', 206 'use_operator' => 0, 207 'identifier' => 'projects', 208 'optional' => 1, 209 'single' => 1, 210 'remember' => 0, 211 'reduce' => 0, 212 ), 213 'widget' => 'textfield', 214 'project_source' => 'all', 215 'project_uid_argument' => '', 216 'id' => 'pid', 217 'table' => 'project_issues', 218 'field' => 'pid', 219 'relationship' => 'none', 220 ), 221 'sid' => array( 222 'operator' => 'in', 223 'value' => array( 224 'Open' => 'Open', 225 ), 226 'group' => '0', 227 'exposed' => TRUE, 228 'expose' => array( 229 'use_operator' => 0, 230 'operator' => 'sid_op', 231 'identifier' => 'status', 232 'label' => 'Status', 233 'optional' => 1, 234 'single' => 1, 235 'remember' => 0, 236 'reduce' => 0, 237 ), 238 'id' => 'sid', 239 'table' => 'project_issues', 240 'field' => 'sid', 241 'relationship' => 'none', 242 ), 243 'priority' => array( 244 'operator' => 'in', 245 'value' => array(), 246 'group' => '0', 247 'exposed' => TRUE, 248 'expose' => array( 249 'use_operator' => 0, 250 'operator' => 'priority_op', 251 'identifier' => 'priorities', 252 'label' => 'Priority', 253 'optional' => 1, 254 'single' => 1, 255 'remember' => 0, 256 'reduce' => 0, 257 ), 258 'id' => 'priority', 259 'table' => 'project_issues', 260 'field' => 'priority', 261 'relationship' => 'none', 262 ), 263 'category' => array( 264 'operator' => 'in', 265 'value' => array(), 266 'group' => '0', 267 'exposed' => TRUE, 268 'expose' => array( 269 'use_operator' => 0, 270 'operator' => 'category_op', 271 'identifier' => 'categories', 272 'label' => 'Category', 273 'optional' => 1, 274 'single' => 1, 275 'remember' => 0, 276 'reduce' => 0, 277 ), 278 'id' => 'category', 279 'table' => 'project_issues', 280 'field' => 'category', 281 'relationship' => 'none', 282 ), 283 ); 284 if (module_exists('search')) { 285 $search_filter['keys'] = array( 286 'operator' => 'optional', 287 'value' => '', 288 'group' => '0', 289 'exposed' => TRUE, 290 'expose' => array( 291 'use_operator' => 0, 292 'operator' => 'keys_op', 293 'identifier' => 'text', 294 'label' => 'Search for', 295 'optional' => 1, 296 'remember' => 0, 297 ), 298 'id' => 'keys', 299 'table' => 'search_index', 300 'field' => 'keys', 301 'relationship' => 'none', 302 ); 303 $filters = $search_filter + $filters; 304 } 305 $handler->override_option('filters', $filters); 306 $handler->override_option('access', array( 307 'type' => 'none', 308 )); 309 $handler->override_option('title', 'Issues for all projects'); 310 $handler->override_option('empty', 'No issues match your criteria.'); 311 $handler->override_option('empty_format', '1'); 312 $handler->override_option('items_per_page', 50); 313 $handler->override_option('use_pager', '1'); 314 $handler->override_option('style_plugin', 'project_issue_table'); 315 $handler->override_option('style_options', array( 316 'grouping' => '', 317 'override' => 1, 318 'sticky' => 1, 319 'order' => 'desc', 320 'columns' => array( 321 'project_issue_queue' => 'project_issue_queue', 322 'title' => 'title', 323 'timestamp' => 'title', 324 'sid' => 'sid', 325 'priority' => 'priority', 326 'category' => 'category', 327 'comment_count' => 'comment_count', 328 'new_comments' => 'comment_count', 329 'last_comment_timestamp' => 'last_comment_timestamp', 330 'name' => 'name', 331 'score' => 'score', 332 ), 333 'info' => array( 334 'project_issue_queue' => array( 335 'sortable' => 1, 336 'separator' => '', 337 ), 338 'title' => array( 339 'sortable' => 1, 340 'separator' => '', 341 ), 342 'timestamp' => array( 343 'separator' => '', 344 ), 345 'sid' => array( 346 'sortable' => 1, 347 'separator' => '', 348 ), 349 'priority' => array( 350 'sortable' => 1, 351 'separator' => '', 352 ), 353 'category' => array( 354 'sortable' => 1, 355 'separator' => '', 356 ), 357 'comment_count' => array( 358 'sortable' => 1, 359 'separator' => '<br />', 360 ), 361 'new_comments' => array( 362 'separator' => '', 363 ), 364 'last_comment_timestamp' => array( 365 'sortable' => 1, 366 'separator' => '', 367 ), 368 'name' => array( 369 'sortable' => 1, 370 'separator' => '', 371 ), 372 'score' => array( 373 'sortable' => 1, 374 'separator' => '', 375 ), 376 ), 377 'default' => module_exists('search') ? 'score' : 'last_comment_timestamp', 378 )); 379 $handler = $view->new_display('page', 'Page', 'page_1'); 380 $handler->override_option('path', 'project/issues'); 381 $handler->override_option('menu', array( 382 'type' => 'normal', 383 'title' => 'Issues', 384 'description' => '', 385 'weight' => '0', 386 'name' => 'navigation', 387 )); 388 $handler->override_option('tab_options', array( 389 'type' => 'none', 390 'title' => '', 391 'description' => '', 392 'weight' => 0, 393 )); 394 $handler = $view->new_display('feed', 'Feed', 'feed_1'); 395 $handler->override_option('sorts', array( 396 'last_comment_timestamp' => array( 397 'order' => 'DESC', 398 'granularity' => 'second', 399 'id' => 'last_comment_timestamp', 400 'table' => 'node_comment_statistics', 401 'field' => 'last_comment_timestamp', 402 'override' => array( 403 'button' => 'Use default', 404 ), 405 'relationship' => 'none', 406 ), 407 )); 408 $handler->override_option('style_plugin', 'rss'); 409 $handler->override_option('style_options', array( 410 'mission_description' => FALSE, 411 'description' => '', 412 )); 413 $handler->override_option('row_plugin', 'node_rss'); 414 $handler->override_option('path', 'project/issues/rss'); 415 $handler->override_option('menu', array( 416 'type' => 'none', 417 'title' => '', 418 'description' => '', 419 'weight' => 0, 420 'name' => '', 421 )); 422 $handler->override_option('tab_options', array( 423 'type' => 'none', 424 'title' => '', 425 'description' => '', 426 'weight' => 0, 427 )); 428 $handler->override_option('displays', array( 429 'page_1' => 'page_1', 430 'default' => 0, 431 )); 432 $handler->override_option('sitename_title', FALSE);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |