This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.

36 lines
910 B
PHP
Raw Normal View History

2010-11-30 09:41:08 +11:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides account management
*
2013-03-20 09:35:19 +11:00
* @package OSB
2010-11-30 09:41:08 +11:00
* @category Controllers
* @author Deon George
2013-03-20 09:35:19 +11:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2010-11-30 09:41:08 +11:00
*/
class Controller_Account extends Controller_TemplateDefault {
2013-05-10 20:48:10 +10:00
protected function group() {
// List all available groups for this user.
$output = '';
foreach ($this->ao->groups() as $go)
$output .= sprintf('Group %s: %s<br/>',$go->id,$go->display('name'));
Block::factory()
->title('Group Structure')
->body($output);
// List all available methods for this user.
$output = '';
foreach ($this->ao->methods() as $mmo)
$output .= sprintf('Module: %s, Method %s: %s<br/>',$mmo->module->name,$mmo->name,$mmo->url());
Block::factory()
->title('Available Methods')
->body($output);
}
2010-11-30 09:41:08 +11:00
}
?>