Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('SYSPATH') or die('No direct access allowed.');
- class Sofia_Plugin extends Bluebox_Plugin
- {
- protected $name = 'sofia';
- public function index()
- {
- $this->grid->add('sofia_status', 'Status', array(
- 'align' => 'center',
- 'search' => false,
- 'sortable' => false,
- 'callback' => array(
- 'function' => array($this, '_showStatus'),
- 'arguments' => array('plugins', 'User/location_id')
- )
- )
- );
- }
- public function _showStatus($null, $plugins, $location_id)
- {
- if (empty($plugins['sip']))
- {
- return;
- }
- $sip = $plugins['sip'];
- return $sip['username'] .'@' .'${location_' .$location_id .'}';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement