• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ActionMessage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ActionMessage的典型用法代码示例。如果您正苦于以下问题:PHP ActionMessage类的具体用法?PHP ActionMessage怎么用?PHP ActionMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ActionMessage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
 }
开发者ID:marcelog,项目名称:pami,代码行数:15,代码来源:MixMonitorMuteAction.php


示例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);
     }
 }
开发者ID:josefd8,项目名称:dashboardWeb,代码行数:15,代码来源:ReloadAction.php


示例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);
     }
 }
开发者ID:excelwebzone,项目名称:pastum,代码行数:12,代码来源:StatusAction.php


示例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);
     }
 }
开发者ID:josefd8,项目名称:dashboardWeb,代码行数:15,代码来源:QueueResetAction.php


示例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');
 }
开发者ID:rs-orlov,项目名称:PAMI,代码行数:16,代码来源:BridgeAction.php


示例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);
 }
开发者ID:rs-orlov,项目名称:PAMI,代码行数:16,代码来源:JabberSendAction.php


示例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);
 }
开发者ID:bit0rez,项目名称:PAMI,代码行数:16,代码来源:DongleSendSMSAction.php


示例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);
 }
开发者ID:josefd8,项目名称:dashboardWeb,代码行数:19,代码来源:DBPutAction.php


示例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);
 }
开发者ID:marcelog,项目名称:pami,代码行数:14,代码来源:BlindTransferAction.php


示例10: __construct

 /**
  * Constructor.
  *
  * @param string $rule Rule
  */
 public function __construct($rule = false)
 {
     parent::__construct('QueueRule');
     if ($rule !== false) {
         $this->setKey('Rule', $rule);
     }
 }
开发者ID:excelwebzone,项目名称:pastum,代码行数:12,代码来源:QueueRuleAction.php


示例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);
     }
 }
开发者ID:marcelog,项目名称:pami,代码行数:14,代码来源:UserEventAction.php


示例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);
 }
开发者ID:alesf,项目名称:PAMI,代码行数:18,代码来源:AttendedTransferAction.php


示例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);
     }
 }
开发者ID:rs-orlov,项目名称:PAMI,代码行数:16,代码来源:GetVarAction.php


示例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);
     }
 }
开发者ID:excelwebzone,项目名称:pastum,代码行数:14,代码来源:GetConfigAction.php


示例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);
 }
开发者ID:alesf,项目名称:PAMI,代码行数:16,代码来源:MonitorAction.php


示例16: __construct

 /**
  * Constructor.
  *
  * @param string $family
  *        	Family.
  * @param string $key
  *        	Name (optional)
  *        	
  * @return void
  */
 public function __construct($family, $key = false)
 {
     parent::__construct('DBDelTree');
     $this->setKey('Family', $family);
     if ($key != false) {
         $this->setKey('Key', $key);
     }
 }
开发者ID:josefd8,项目名称:dashboardWeb,代码行数:18,代码来源:DBDelTreeAction.php


示例17: __construct

 /**
  * Constructor.
  *
  * @param string $channel Channel to hangup.
  * @param int    $cause   Hangup cause.
  *
  * @return void
  */
 public function __construct($channel, $cause = null)
 {
     parent::__construct('Hangup');
     $this->setKey('Channel', $channel);
     if (null !== $cause) {
         $this->setKey('Cause', $cause);
     }
 }
开发者ID:marcelog,项目名称:pami,代码行数:16,代码来源:HangupAction.php


示例18: __construct

 /**
  * Constructor.
  *
  * @return void
  */
 public function __construct($channel, $command, $commandId = false)
 {
     parent::__construct('AGI');
     $this->setKey('Channel', $channel);
     $this->setKey('Command', $command);
     if ($commandId !== false) {
         $this->setKey('CommandId', $commandId);
     }
 }
开发者ID:bit0rez,项目名称:PAMI,代码行数:14,代码来源:AGIAction.php


示例19: __construct

 /**
  * Constructor.
  *
  * @param string $user AMI username.
  * @param string $password AMI password.
  * @param string|null $eventMask
  *
  * @return void
  */
 public function __construct($user, $password, $eventMask = null)
 {
     parent::__construct('Login');
     $this->setKey('Username', $user);
     $this->setKey('Secret', $password);
     if (null !== $eventMask) {
         $this->setKey('Events', $eventMask);
     }
 }
开发者ID:marcelog,项目名称:pami,代码行数:18,代码来源:LoginAction.php


示例20: __construct

 /**
  * Constructor.
  *
  * @param string $queue
  *        	Queue name.
  * @param string $event
  *        	Event.
  *        	
  * @return void
  */
 public function __construct($interface, $penalty, $queue = false)
 {
     parent::__construct('QueuePenalty');
     $this->setKey('Interface', $interface);
     $this->setKey('Penalty', $penalty);
     if ($queue !== false) {
         $this->setKey('Queue', $queue);
     }
 }
开发者ID:josefd8,项目名称:dashboardWeb,代码行数:19,代码来源:QueuePenaltyAction.php



注:本文中的ActionMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ActionResponse类代码示例发布时间:2022-05-23
下一篇:
PHP ActionController类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap