Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/field/views_handler_relationship_entity_reverse.inc
10 10
 *
11 11
 * @ingroup views_relationship_handlers
12 12
 */
13
class views_handler_relationship_entity_reverse extends views_handler_relationship  {
14
  function init(&$view, &$options) {
13
class views_handler_relationship_entity_reverse extends views_handler_relationship {
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function init(&$view, &$options) {
15 19
    parent::init($view, $options);
16 20

  
17 21
    $this->field_info = field_info_field($this->definition['field_name']);
......
20 24
  /**
21 25
   * Called to implement a relationship in a query.
22 26
   */
23
  function query() {
27
  public function query() {
24 28
    $this->ensure_my_table();
25 29
    // First, relate our base table to the current base table to the
26 30
    // field, using the base table's id field to the field's column.
......
76 80
    $second_join->construct();
77 81
    $second_join->adjusted = TRUE;
78 82

  
79
    // use a short alias for this:
83
    // Use a short alias for this.
80 84
    $alias = $this->definition['field_name'] . '_' . $this->table;
81 85

  
82 86
    $this->alias = $this->query->add_relationship($alias, $second_join, $this->definition['base'], $this->relationship);
83 87
  }
88

  
84 89
}

Formats disponibles : Unified diff