class User6

  1. 8.0.x lib/Drush/User/User6.php User6
  2. 7.x lib/Drush/User/User6.php User6

Namespace

Drush\User

Hierarchy

Expanded class hierarchy of User6

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
User6::create public function {inheritdoc} Overrides User7::create
User6::load_by_mail public function Attempt to load a user account. Overrides UserVersion::load_by_mail
User6::load_by_name public function Attempt to load a user account. Overrides UserVersion::load_by_name
UserVersion::getCurrentUserAsAccount public function Load the current user account.
UserVersion::getCurrentUserAsSingle public function Load the current user account and return a UserSingle instance.
UserVersion::load_by_uid public function Attempt to load a user account.
UserVersion::setCurrentUser public function Set the current "global" user account in Drupal.

File

lib/Drush/User/User6.php, line 5

View source
class User6 extends User7 {

  /**
   * {inheritdoc}
   */
  public function create($properties) {
    $account = user_save(NULL, $properties, NULL);
    return new UserSingle6($account);
  }

  /**
   * {@inheritdoc}
   */
  public function load_by_name($name) {
    return user_load(array('name' => $name));
  }

  /**
   * {@inheritdoc}
   */
  public function load_by_mail($mail) {
    return user_load(array('mail' => $mail));
  }

}