00001 <?php
00002
00008 class views_handler_sort_search_score extends views_handler_sort {
00009 function query() {
00010
00011
00012
00013
00014 foreach (array('filter', 'argument') as $type) {
00015 foreach ($this->view->{$type} as $handler) {
00016 if (isset($handler->search_score) && $handler->relationship == $this->relationship) {
00017 $this->query->add_orderby(NULL, NULL, $this->options['order'], $handler->search_score);
00018 $this->table_alias = $handler->table_alias;
00019 return;
00020 }
00021 }
00022 }
00023
00024
00025
00026 }
00027 }