ВМ
Size: a a a
ВМ
ВМ
СС
СС
AN
$userData = UserTable::getRow([
'select' => ['PERSONAL_GENDER'],
'filter' => [
'=ID' => '655',
],
]);
getUserGenderSuffix( $userId = 0 )
return $userData['PERSONAL_GENDER'];
AN
СС
AN
AN
СС
$userData = UserTable::getRow([
'select' => ['PERSONAL_GENDER'],
'filter' => [
'=ID' => '655',
],
]);
getUserGenderSuffix( $userId = 0 )
return $userData['PERSONAL_GENDER'];
M
ВМ
AN
СС
getUserGenderSuffix( $userId = 0 ): string
$userData = UserTable::getRow([if($userData && !empty($userData['PERSONAL_GENDER']))
'select' => ['PERSONAL_GENDER'],
'filter' => [
'=ID' => '655',
],
]);
return $userData['PERSONAL_GENDER'];}
AN
getUserGenderSuffix( $userId = 0 ): string
$userData = UserTable::getRow([if($userData && !empty($userData['PERSONAL_GENDER']))
'select' => ['PERSONAL_GENDER'],
'filter' => [
'=ID' => '655',
],
]);
return $userData['PERSONAL_GENDER'];}
function getUserGenderSuffix( $userId = 0 )
{
if ( empty($userId) )
{
return '';
}
$userData = \Bitrix\Main\UserTable::getRow([
'select' => ['PERSONAL_GENDER'],
'filter' => [
'=ID' => $userId,
'!PERSONAL_GENDER' => false,
],
]);
if( $userData )
{
return $userData['PERSONAL_GENDER'];
}
return '';
}
AN
$this->SetVariable('firstUserGenderLetter', getUserGenderSuffix( 1 ));ВМ
I
РИ
I