public function TripalEntityCollection::getUserID

3.x TripalEntityCollection.inc public TripalEntityCollection::getUserID()

Retrieves the ID of the user that owns the collection

Return value

The numeric User ID.

File

tripal/includes/TripalEntityCollection.inc, line 391

Class

TripalEntityCollection

Code

public function getUserID() {
  if ($this->user) {
    return $this->user->uid;
  }
  return NULL;
}