You are here

user.class.php in Linkit 7.3

Define Linkit user search plugin class.

File

plugins/linkit_search/user.class.php
View source
<?php

/**
 * @file
 * Define Linkit user search plugin class.
 */

/**
 * Reprecents a Linkit user search plugin.
 */
class LinkitSearchPluginUser extends LinkitSearchPluginEntity {

  /**
   * Overrides LinkitSearchPluginEntity::__construct().
   */
  function __construct($plugin, $profile) {

    /**
     * The user entity doesn't add any label in their entity keys as they define a
     * "label callback" instead. Therefore we have to tell which field the user
     * entity have as label.
     */
    $this->entity_field_label = 'name';
    parent::__construct($plugin, $profile);
  }

}

Classes

Namesort descending Description
LinkitSearchPluginUser Reprecents a Linkit user search plugin.