当前位置: 首页>>代码示例>>PHP>>正文


PHP ActionMessage::__construct方法代码示例

本文整理汇总了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);
 }
开发者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


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