本文整理汇总了PHP中ActionMessage::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ActionMessage::__construct方法的具体用法?PHP ActionMessage::__construct怎么用?PHP ActionMessage::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionMessage
的用法示例。
在下文中一共展示了ActionMessage::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor.
*
* @param string $channel Channel on which to act.
* @param bool $state Turn mute on or off
* @param string $direction Which part of the recording to mute:
* read, write or both (from channel, to channel or both channels).
*/
public function __construct($channel, $state = true, $direction = 'both')
{
parent::__construct('MixMonitorMute');
$this->setKey('Channel', $channel);
$this->setState($state);
$this->setDirection($direction);
}
示例2: __construct
/**
* Constructor.
*
* @param string $module
* Optional module name.
*
* @return void
*/
public function __construct($module = false)
{
parent::__construct('Reload');
if ($module !== false) {
$this->setKey('Module', $module);
}
}
示例3: __construct
/**
* Constructor.
*
* @param string $channel Channel to query (optional)
*/
public function __construct($channel = false)
{
parent::__construct('Status');
if ($channel !== false) {
$this->setKey('Channel', $channel);
}
}
示例4: __construct
/**
* Constructor.
*
* @param string $queue
* Queue name.
*
* @return void
*/
public function __construct($queue = false)
{
parent::__construct('QueueReset');
if ($queue !== false) {
$this->setKey('Queue', $queue);
}
}
示例5: __construct
/**
* Constructor.
*
* @param string $channel1 Channel1
* @param string $channel1 Channel1
* @param boolean $tone Play courtesy tone to Channel2
*
* @return void
*/
public function __construct($channel1, $channel2, $tone = false)
{
parent::__construct('Bridge');
$this->setKey('Channel1', $channel1);
$this->setKey('Channel2', $channel2);
$this->setKey('Tone', $tone ? 'true' : 'false');
}
示例6: __construct
/**
* Constructor.
*
* @param string $jabber Client or transport Asterisk uses to connect to JABBER.
* @param string $jid XMPP/Jabber JID (Name) of recipient.
* @param string $message Message to be sent to the buddy.
*
* @return void
*/
public function __construct($jabber, $jid, $message)
{
parent::__construct('JabberSend');
$this->setKey('Jabber', $jabber);
$this->setKey('JID', $jid);
$this->setKey('Message', $message);
}
示例7: __construct
/**
* Constructor.
*
* @param string $device Device name (like dongle01).
* @param string $number Destination number.
* @param string $message What to send.
*
* @return void
*/
public function __construct($device, $number, $message)
{
parent::__construct('DongleSendSMS');
$this->setKey('Device', $device);
$this->setKey('Number', $number);
$this->setKey('Message', $message);
}
示例8: __construct
/**
* Constructor.
*
* @param string $family
* Family.
* @param string $key
* Name.
* @param string $value
* Value.
*
* @return void
*/
public function __construct($family, $key, $value)
{
parent::__construct('DBPut');
$this->setKey('Family', $family);
$this->setKey('Key', $key);
$this->setKey('Val', $value);
}
示例9: __construct
/**
* Constructor.
*
* @param string $channel Transferer's channel.
* @param string $extension Extension to transfer to.
* @param string $context Context to transfer to.
*/
public function __construct($channel, $extension, $context)
{
parent::__construct('BlindTransfer');
$this->setKey('Channel', $channel);
$this->setKey('Exten', $extension);
$this->setKey('Context', $context);
}
示例10: __construct
/**
* Constructor.
*
* @param string $rule Rule
*/
public function __construct($rule = false)
{
parent::__construct('QueueRule');
if ($rule !== false) {
$this->setKey('Rule', $rule);
}
}
示例11: __construct
/**
* Constructor.
*
* @param string $userEvent UserEvent
* @param array $headers
*/
public function __construct($userEvent, array $headers = [])
{
parent::__construct('UserEvent');
$this->setKey('UserEvent', $userEvent);
foreach ($headers as $key => $value) {
$this->setKey((string) $key, (string) $value);
}
}
示例12: __construct
/**
* Constructor.
*
* @param string $channel Transferer's channel.
* @param string $extension Extension to transfer to.
* @param string $context Context to transfer to.
* @param string $priority Priority to transfer to.
*
* @return void
*/
public function __construct($channel, $extension, $context, $priority)
{
parent::__construct('Atxfer');
$this->setKey('Channel', $channel);
$this->setKey('Exten', $extension);
$this->setKey('Context', $context);
$this->setKey('Priority', $priority);
}
示例13: __construct
/**
* Constructor.
*
* @param string $name Variable name.
* @param string $channel Optional channel name.
*
* @return void
*/
public function __construct($name, $channel = false)
{
parent::__construct('Getvar');
$this->setKey('Variable', $name);
if ($channel != false) {
$this->setKey('Channel', $channel);
}
}
示例14: __construct
/**
* Constructor.
*
* @param string $filename Configuration filename (e.g.: foo.conf)
* @param Boolean $category Category in configuration file
*/
public function __construct($filename, $category = false)
{
parent::__construct('GetConfig');
$this->setKey('Filename', $filename);
if ($category != false) {
$this->setKey('Category', $category);
}
}
示例15: __construct
/**
* Constructor.
*
* @param string $channel Channel to monitor.
* @param string $filename Absolute path to target filename.
*
* @return void
*/
public function __construct($channel, $filename)
{
parent::__construct('Monitor');
$this->setKey('Channel', $channel);
$this->setKey('Mix', 'true');
$this->setKey('Format', 'wav');
$this->setKey('File', $filename);
}