You are here

protected function Bean::setUid in Bean (for Drupal 7) 7

Get the user

File

includes/bean.core.inc, line 384
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

protected function setUid() {
  global $user;
  $this->uid = empty($this->uid) ? $user->uid : $this->uid;
  return $this;
}