public function Channel::hasType in Rocket.Chat 8.2
Check if this Channel is of type $test.
Parameters
int $test:
Return value
bool|int
4 calls to Channel::hasType()
- Channel::getChannelProxy in modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php - Retrieve the Proxy, create the Channel / Group if needed.
- Channel::getChannelTypeName in modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php - Get Channel Type (channels|groups) or (public | private type.
- Channel::getChannelURI in modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php - Channel::__toString in modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php
File
- modules/
rocket_chat_api/ src/ RocketChat/ Element/ Channel.php, line 177
Class
Namespace
Drupal\rocket_chat_api\RocketChat\ElementCode
public function hasType($test) {
return ($this
->getChannelType() & $test) > 0;
}