/**
  * Restrict the query for these search parameters.
  * @param QUERY $query
  * @access private
  */
 protected function _apply_to_query($query)
 {
     $this->fields->apply_to_query($query, $this);
 }
 /**
  * @param CONTEXT $context
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $this->_add_text('title', 'Title', true);
     $this->_add_date('time_created', 'Created');
     $this->_add_date('time_modified', 'Modified');
     $this->_add_user('creator_id', 'Creator');
     $this->_add_user('modifier_id', 'Modifier');
     $this->_link_fields('time_created', 'creator_id');
     $this->_link_fields('time_modified', 'modifier_id');
     $this->_add_sort('1');
     $this->_add_sort('2');
     $this->_add_sort('3');
 }