| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Sort in menu hierarchy order. 5 * 6 * Given a field name of 'p' this produces an ORDER BY on p1, p2, ..., p9. 7 * This is only really useful for the {menu_links} table. 8 * 9 * @ingroup views_sort_handlers 10 */ 11 class views_handler_sort_menu_hierarchy extends views_handler_sort { 12 function query() { 13 $this->ensure_my_table(); 14 $max_depth = isset($this->definition['max depth']) ? $this->definition['max depth'] : MENU_MAX_DEPTH; 15 for ($i = 1; $i <= $max_depth; ++$i) { 16 $this->query->add_orderby($this->table_alias, $this->field . $i, $this->options['order']); 17 } 18 } 19 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |