本文整理汇总了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'));
}
示例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'));
示例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'));
示例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'));
示例5: defined
<?php
defined('SYSPATH') or die('No direct access allowed.');
plugins::register('devicemanager/index', 'view', array('Sofia_Plugin', 'index'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));
示例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'));