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


PHP plugins::register方法代码示例

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


在下文中一共展示了plugins::register方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dynamicNumberPlugin

 public static function dynamicNumberPlugin()
 {
     $view = Event::$data;
     if (!$view instanceof View) {
         return TRUE;
     }
     if (!isset($view->base)) {
         return TRUE;
     }
     $base = $view->base;
     if (!isset($view->{$base})) {
         return TRUE;
     }
     $checkFor = get_class($view->{$base}) . 'Number';
     if (!class_exists($checkFor)) {
         return TRUE;
     }
     kohana::log('debug', 'Base model `' . $base . '` found reference to number, registering NumberManager_Plugin::numberInventory()');
     plugins::register(Router::$controller . '/' . Router::$method, 'view', array('NumberManager_Plugin', 'numberInventory'));
 }
开发者ID:swk,项目名称:bluebox,代码行数:20,代码来源:Numbers.php

示例2: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
dialplan::register('CallRecord', 'conditioning');
dialplan::register('CallRecord', 'preanswer');
dialplan::register('CallRecord', 'prenumber');
plugins::register('devicemanager/create', 'view', array('CallRecord_Plugin', 'update'));
plugins::register('devicemanager/edit', 'view', array('CallRecord_Plugin', 'update'));
plugins::register('devicemanager', 'save', array('CallRecord_Plugin', 'save'));
plugins::register('xmlcdr/details', 'view', array('CallRecord_Plugin', 'recordings'));
开发者ID:swk,项目名称:bluebox,代码行数:10,代码来源:callrecord.php

示例3: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('contextmanager/create', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('contextmanager/edit', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('contextmanager', 'save', array('SimpleRoute_Plugin', 'save'));
plugins::register('accountmanager', 'delete', array('SimpleRoute_Plugin', 'buildAccountRelationships'));
Event::add('bluebox.save_prepare', array('SimpleRouteLib', 'importRoutesNewAccount'));
plugins::register('devicemanager/create', 'view', array('SimpleRoute_Plugin', 'device_update'));
plugins::register('devicemanager/edit', 'view', array('SimpleRoute_Plugin', 'device_update'));
#    plugins::register('devicemanager', 'save', array('SimpleRoute_Plugin', 'device_save'));
开发者ID:swk,项目名称:bluebox,代码行数:11,代码来源:simpleroute.php

示例4: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('installer/telephony/asterisk', 'view', array('Asterisk_Plugin', 'install'));
plugins::register('installer/telephony/asterisk', 'save', array('Asterisk_Plugin', 'save'));
// Add context support to trunks
plugins::register('trunkmanager/add', 'view', array('Asterisk_Plugin', 'trunkView'));
plugins::register('trunkmanager/edit', 'view', array('Asterisk_Plugin', 'trunkView'));
开发者ID:swk,项目名称:bluebox,代码行数:8,代码来源:asterisk.php

示例5: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('devicemanager/index', 'view', array('Sofia_Plugin', 'index'));
开发者ID:swk,项目名称:bluebox,代码行数:4,代码来源:sofia.php

示例6: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('trunkmanager/create', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('trunkmanager/edit', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('trunkmanager', 'save', array('SimpleRoute_Plugin', 'save'));
开发者ID:swk,项目名称:bluebox,代码行数:6,代码来源:simpleroute.php

示例7: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('devicemanager/create', 'view', array('Dbndir_Plugin', 'update'));
plugins::register('devicemanager/edit', 'view', array('Dbndir_Plugin', 'update'));
plugins::register('devicemanager', 'save', array('Dbndir_Plugin', 'save'));
plugins::register('numbermanager', 'save', array('Dbndir_Plugin', 'save'));
Event::add('numbermanager.collectNumberOptions', array('Dbndir_Plugin', 'provideNumberOptions'));
Event::add('numbermanager.collectNumberTargets', array('Dbndir_Plugin', 'provideNumberTargets'));
开发者ID:swk,项目名称:bluebox,代码行数:9,代码来源:dbndir.php

示例8: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
Event::add('numbermanager.collectNumberTargets', array('AutoAttendants', 'provideNumberTargets'));
plugins::register('autoattendant/create', 'view', array('Media_Plugin', 'update'));
plugins::register('autoattendant/edit', 'view', array('Media_Plugin', 'update'));
plugins::register('autoattendant', 'save', array('Media_Plugin', 'save'));
Event::add('bluebox.account.initialize', array('AutoAttendants', 'initSampleData'));
开发者ID:swk,项目名称:bluebox,代码行数:8,代码来源:autoattendant.php

示例9: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('accountmanager/create', 'view', array('UserManager_Plugin', 'initialAccountUsers'));
plugins::register('quickadd/create', 'view', array('UserManager_Plugin', 'initialAccountUsers'));
plugins::register('accountmanager/edit', 'view', array('UserManager_Plugin', 'createSubGrid'));
plugins::register('devicemanager/index', 'view', array('UserManager_Plugin', 'appendToGrid'));
plugins::register('locationmanager/edit', 'view', array('UserManager_Plugin', 'createSubGrid'));
开发者ID:swk,项目名称:bluebox,代码行数:8,代码来源:usermanager.php

示例10: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('trunkmanager/create', 'view', array('Sip_Plugin', 'updateTrunk'));
plugins::register('trunkmanager/edit', 'view', array('Sip_Plugin', 'updateTrunk'));
plugins::register('trunkmanager', 'view', array('Sip_Plugin', 'provideTrunkType'));
plugins::register('trunkmanager', 'save', array('Sip_Plugin', 'save'));
plugins::register('devicemanager/create', 'view', array('Sip_Plugin', 'update'));
plugins::register('devicemanager/edit', 'view', array('Sip_Plugin', 'update'));
plugins::register('devicemanager', 'save', array('Sip_Plugin', 'save'));
Event::add('bluebox.create.extension', array('SipLib', 'createExtension'));
开发者ID:swk,项目名称:bluebox,代码行数:11,代码来源:sip.php

示例11: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
// Add SIP device fields to the page where devices are added
plugins::register('devicemanager/create', 'view', array('MediaOption_Plugin', 'update'));
plugins::register('devicemanager/edit', 'view', array('MediaOption_Plugin', 'update'));
plugins::register('devicemanager', 'save', array('MediaOption_Plugin', 'save'));
// Add SIP device fields to the page where devices are added
plugins::register('contextmanager/create', 'view', array('MediaOption_Plugin', 'update'));
plugins::register('contextmanager/edit', 'view', array('MediaOption_Plugin', 'update'));
plugins::register('contextmanager', 'save', array('MediaOption_Plugin', 'save'));
开发者ID:swk,项目名称:bluebox,代码行数:11,代码来源:mediaoption.php

示例12: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
Event::add('numbermanager.collectNumberTargets', array('Conferences', 'provideNumberTargets'));
plugins::register('conference/create', 'view', array('Media_Plugin', 'update'));
plugins::register('conference/edit', 'view', array('Media_Plugin', 'update'));
plugins::register('conference', 'save', array('Media_Plugin', 'save'));
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:conference.php

示例13: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
dialplan::register('SipEncryption', 'conditioning');
plugins::register('sipinterface/add', 'view', array('SipEncrption_Plugin', 'update'));
plugins::register('sipinterface/edit', 'view', array('SipEncryption_Plugin', 'update'));
plugins::register('sipinterface', 'save', array('SipEncryption_Plugin', 'save'));
开发者ID:swk,项目名称:bluebox,代码行数:7,代码来源:sipencryption.php

示例14: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
plugins::register('trunkmanager/create', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('trunkmanager/edit', 'view', array('SimpleRoute_Plugin', 'update'));
plugins::register('trunkmanager', 'save', array('SimpleRoute_Plugin', 'save'));
plugins::register('accountmanager', 'delete', array('SimpleRoute_Plugin', 'buildAccountRelationships'));
Event::add('bluebox.save_prepare', array('SimpleRouteLib', 'importRoutesNewAccount'));
开发者ID:swk,项目名称:bluebox,代码行数:8,代码来源:simpleroute.php

示例15: defined

<?php

defined('SYSPATH') or die('No direct access allowed.');
dialplan::register('CallerId', 'conditioning');
dialplan::register('CallerId', 'prenumber');
plugins::register('devicemanager/create', 'view', array('CallerId_Plugin', 'update'));
plugins::register('devicemanager/edit', 'view', array('CallerId_Plugin', 'update'));
plugins::register('devicemanager', 'save', array('CallerId_Plugin', 'save'));
plugins::register('externalxfer/create', 'view', array('CallerId_Plugin', 'update_ext'));
plugins::register('externalxfer/edit', 'view', array('CallerId_Plugin', 'update_ext'));
plugins::register('externalxfer', 'save', array('CallerId_Plugin', 'save'));
Event::add('bluebox.create.extension', array('CidLib', 'createExtension'));
开发者ID:swk,项目名称:bluebox,代码行数:12,代码来源:callerid.php


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