Пример #1
0
 /**
  * Reads a user record out of the table adm_users in database selected by the unique user id.
  * Also all profile fields of the object @b mProfileFieldsData will be read.
  * @param int|string $userId Unique id of the user that should be read
  * @return bool Returns @b true if one record is found
  */
 public function readDataById($userId)
 {
     if (parent::readDataById($userId)) {
         // read data of all user fields from current user
         $this->mProfileFieldsData->readUserData($userId, $this->organizationId);
         return true;
     } else {
         return false;
     }
 }