PHP Class PhpSlackBot\Base

显示文件 Open project: jclg/php-slack-bot

Public Methods

Method Description
getClient ( )
getCurrentChannel ( )
getCurrentContext ( )
getCurrentUser ( )
getName ( )
setChannel ( $channel )
setClient ( $client )
setContext ( $context )
setName ( $name )
setUser ( $user )

Protected Methods

Method Description
configure ( )
execute ( $message, $context )
getChannelIdFromChannelName ( $channelName )
getChannelNameFromChannelId ( $channelId )
getImIdFromUserId ( $userId )
getUserNameFromUserId ( $userId )
send ( $channel, $username, $message )

Method Details

configure() abstract protected method

abstract protected configure ( )

execute() abstract protected method

abstract protected execute ( $message, $context )

getChannelIdFromChannelName() protected method

protected getChannelIdFromChannelName ( $channelName )

getChannelNameFromChannelId() protected method

protected getChannelNameFromChannelId ( $channelId )

getClient() public method

public getClient ( )

getCurrentChannel() public method

public getCurrentChannel ( )

getCurrentContext() public method

public getCurrentContext ( )

getCurrentUser() public method

public getCurrentUser ( )

getImIdFromUserId() protected method

protected getImIdFromUserId ( $userId )

getName() public method

public getName ( )

getUserNameFromUserId() protected method

protected getUserNameFromUserId ( $userId )

send() protected method

protected send ( $channel, $username, $message )

setChannel() public method

public setChannel ( $channel )

setClient() public method

public setClient ( $client )

setContext() public method

public setContext ( $context )

setName() public method

public setName ( $name )

setUser() public method

public setUser ( $user )