本文整理汇总了PHP中Application::getRouter方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::getRouter方法的具体用法?PHP Application::getRouter怎么用?PHP Application::getRouter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application
的用法示例。
在下文中一共展示了Application::getRouter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
/**
*
* @param string $viewName
* @return
*/
public function show($viewName)
{
$path = $this->application->getRouter()->getControllersPath() . '/../views' . '/' . $viewName . '.php';
if (file_exists($path) === false) {
throw new \InvalidArgumentException(__METHOD__ . ": Template not found in '{$path}'");
}
// Load variables
foreach ($this->vars as $key => $value) {
$key = $value;
}
require_once $path;
}
示例2: __construct
public function __construct($rowsPerPage = 20, $totalRows = null, $updateTableUrlsToService = true)
{
$this->table = new Extension_View_Yui35_DataTable();
$this->paginator = new Extension_View_Yui35_Paginator();
$this->setRowsPerPage((int) $rowsPerPage);
$this->setTotalRows($totalRows);
$this->addEventListener('onGenerateViewBefore', $this, 'onGenerateViewBeforeHandler');
$this->addFilterGroupOperators('default', 'and');
if ($updateTableUrlsToService) {
$this->setUrl('filter', Application::getRouter()->getFullUrl(array('controller' => 'servicejson', 'action' => 'modelcollection')));
$this->setUrlCRUD(Application::getRouter()->getFullUrl(array('controller' => 'servicejson', 'action' => 'model')));
}
$this->setWidgetDependencies('io-form');
$this->setWidgetDependencies('json-parse');
$this->setWidgetDependencies('json-parse');
$this->setWidgetDependencies('recordset');
}
示例3: setOfferTable
private function setOfferTable()
{
$offerTable = new Extension_View_Yui35_DataTableEdit();
$offerTable->isAddButtonEnabled(false);
$eventTypesValues = new Model_EventTypesValueModel();
$eventTypesValues->addQuery('select', array('table' => $eventTypesValues->getTableName()));
$model = new Model_EventBetsModel();
$offerTable->setModel($model);
$eventTypesId = $this->getEventTypesId();
if (is_numeric($eventTypesId)) {
$eventTypesValues->addQuery('where', array('where_condition' => 'event_types_id_FK=' . (int) $eventTypesId));
} else {
return;
}
$eventTypesValues->addQuery('order', array('order' => implode($eventTypesValues->getPrimaryKeys(), ",") . ' DESC'));
$eventTypesValuesCoellction = new Core_Model_Adapter_ModelCollection();
$eventTypesValuesCoellction->getModelCollection($eventTypesValues);
$offerTable->getTable()->addColumn(array('key' => 'event_bets_id', 'label' => 'ID'));
$offerTable->getTable()->addColumn(array('key' => 'event_bets_name', 'label' => 'Name'));
$offerTable->getTable()->addColumn(array('key' => 'add_date', 'label' => 'Active'));
$offerTable->getTable()->addColumn(array('key' => 'end_date', 'label' => 'Ends'));
$offerTable->getTable()->addColumn(array('key' => 'score', 'label' => 'Score'));
$offerTable->setUpdateRule('exclude', 'end_date');
$offerTable->setUpdateRule('exclude', 'add_date');
$offerTable->getTable()->addColumn('{key:"correct_type",label:"Correct Type",allowHTML:true,formatter:' . $offerTable->getTable()->getFormatter("selectFromModel", array('values' => $eventTypesValuesCoellction, 'value' => 'event_types_value_id', 'label' => 'event_value_name', 'attributes' => array('name' => 'model[' . $model->getModelClassName() . '][correct_type]'))) . '}', false, 'correct_type');
foreach ($eventTypesValuesCoellction->toArray() as $a) {
$offerTable->getTable()->addColumn(array('key' => $a['event_types_value_id'], 'allowHTML' => true, 'formatter' => '<span class="betOfferElement">{value}</span>', 'label' => $a['event_value_name']));
$offerTable->setUpdateRule('exclude', $a['event_types_value_id']);
}
$groupsId = $this->getGroupId();
if (!is_numeric($groupsId)) {
return;
}
$offerTable->setUrl('filter', Application::getRouter()->getFullUrl(array('controller' => 'servicejson', 'action' => 'method', 'params' => 'method=completeEventBetDataArray&groups_id=' . $groupsId . '&event_types_id' . $eventTypesId)));
$preperedTableArray = $model->completeEventBetDataArray($groupsId, $eventTypesId);
$offerTable->getTable()->setData($preperedTableArray);
return $this->offerTable = $offerTable;
}
示例4: setMenu
public function setMenu()
{
$url = Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view'));
$menu = new Extension_View_Yui35_Menu();
$menu->setDirection('horizontal');
$sportsModel = new Model_SportsModel();
$sportsModel->addQuery('select', array('table' => $sportsModel->getTableName()));
$sportsCollection = new Core_Model_Adapter_ModelCollection();
$sportsCollection->getModelCollection($sportsModel);
foreach ($sportsCollection->toArray() as $s) {
$menu->addLink('sport_' . $s['sports_id'], array('content' => $s['name_of_sport']));
$menu->addChild('menu', 'sport_' . $s['sports_id']);
}
$groupsModel = new Model_GroupsModel();
$groupsModel->addQuery('select', array('table' => $groupsModel->getTableName()));
$groupsCollection = new Core_Model_Adapter_ModelCollection();
$groupsCollection->getModelCollection($groupsModel);
foreach ($groupsCollection->toArray() as $g) {
$menu->addLink('group_' . $g['groups_id'], array('content' => $g['name_of_group'], 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Frontend_Offer&groups_id=' . $g['groups_id'])));
$menu->addChild('sport_' . $g['sports_id_FK'], 'group_' . $g['groups_id']);
}
$this->menu = $menu;
}
示例5: actionIndex
public function actionIndex()
{
$homePageAdmin = new View_Admin_HomePage();
$url = Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view'));
$menu = new Extension_View_Yui35_Menu();
$menu->addLink('bookhouse', array('content' => 'Bookhouse'));
$menu->addLink('groups', array('content' => 'Groups'));
$menu->addLink('sports', array('content' => 'Sports'));
$menu->addLink('settings', array('content' => 'Bookhouse Settings', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_Bookhouse')));
$menu->addLink('teams', array('content' => 'Teams', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_Teams')));
$menu->addLink('eventTypes', array('content' => 'Event Types', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_EventTypes')));
$menu->addLink('users', array('content' => 'Users'));
$menu->addLink('users_edit', array('content' => 'Users Settings', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_Users')));
$menu->addLink('bank', array('content' => 'Bank', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_Bank')));
$menu->addLink('bets', array('content' => 'Bets'));
$menu->addLink('create_event', array('content' => 'Create Event', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_CreateEvent')));
$menu->addLink('create_bet', array('content' => 'Create Bet', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_CreateBet')));
$menu->addLink('manage_bets', array('content' => 'Manage Bets', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_ManageBets')));
$menu->addLink('manage_eventbets', array('content' => 'Manage Event Bets', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_ManageEventBets')));
$menu->addLink('betslips', array('content' => 'Bet Slips', 'attributes' => array('class' => 'systemServiceLink', 'servicehtml' => $url . '&view=View_Admin_UserBetSlips')));
$menu->addChild('menu', 'bookhouse');
$menu->addChild('menu', 'bets');
$menu->addChild('bets', 'create_event');
$menu->addChild('bets', 'manage_bets');
$menu->addChild('bets', 'manage_eventbets');
$menu->addChild('menu', 'users');
$menu->addChild('users', 'users_edit');
$menu->addChild('users', 'bank');
$menu->addChild('users', 'betslips');
$menu->addChild('bookhouse', 'settings');
$menu->addChild('bookhouse', 'groups');
$menu->addChild('groups', 'teams');
$menu->addChild('bookhouse', 'sports');
$menu->addChild('sports', 'eventTypes');
$this->getTemplate()->setMenu($menu);
$this->getTemplate()->setContent($homePageAdmin);
}
示例6: getFullUrl
public function getFullUrl($params)
{
return Application::getBaseUrl() . '/' . Application::getRouter()->getUrl($params);
}
示例7: Core_Auth_User
</ul>
<img src="images/logo.gif" id="logo" /> </div>
<!--navigation_cnr-->
</div>
<!--header_cnr-->
<?php
$user = new Core_Auth_User();
if ($user->getRole() == 'user') {
?>
<div style="float:left;padding:10px" >
<a href="javascript:void(0)" class="systemServiceLink" servicehtml="<?php
echo Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view', 'params' => 'view=View_Frontend_UserBets'));
?>
" > My Bets </a>
| <a href="javascript:void(0)" class="systemServiceLink" servicehtml="<?php
echo Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view', 'params' => 'view=View_Frontend_UserBank'));
?>
"> My Bank</a>
</div>
<?php
}
?>
<div id="body_cnr">
<?php
$menu = $this->getMenu();
if (isset($menu)) {
?>
<div >
<?php
?>
<?php
示例8: array
<?php
$url = Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view', array('params' => '&view=View_Frontend_Offer')));
$selectList = $this->getSelectList();
$eventTypesIdSelected = $this->getEventTypesId();
if (!empty($selectList)) {
foreach ($this->getSelectList() as $s) {
if ($eventTypesIdSelected == $s['event_types_id']) {
$className = 'selectedEventTypes';
} else {
$className = '';
}
?>
<a style="padding:10px" class="systemServiceLink <?php
echo $className;
?>
" href="javascript:void(0);" class="eventTypesLink" servicehtml="<?php
echo $url;
?>
&view=View_Frontend_Offer&event_types_id=<?php
echo $s['event_types_id'];
?>
&groups_id=<?php
echo $this->getGroupId();
?>
" ><?php
echo $s['event_types_name'];
?>
</a>
<?php
示例9: dirname
<?php
/**
* Integry framework bootstrap
*
* @package framework
* @author Integry Systems
*
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ClassLoader.php';
// we're assuming that application root is one level above the framework directory
// if it's not the case, call ClassLoader::mountPath('.', '/path/to/the/root/directory');
ClassLoader::mountPath('.', dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
ClassLoader::mountPath('framework', dirname(__FILE__) . DIRECTORY_SEPARATOR);
ClassLoader::import('framework.request.*');
ClassLoader::import('framework.renderer.*');
ClassLoader::import('framework.response.*');
ClassLoader::import('framework.controller.*');
ClassLoader::import('framework.Application');
$app = new Application();
// initialize default routing rules
$router = $app->getRouter();
$rules = array(array(":controller", array("action" => "index"), array()), array(":controller/:id", array("action" => "index"), array("id" => "-?[0-9]+")), array(":controller/:action", array(), array()), array(":controller/:action/:id", array(), array("id" => "-?[0-9]+")));
foreach ($rules as $route) {
$router->connect($route[0], $route[1], $route[2]);
}
return $app;
示例10: setUsersTablePanel
private function setUsersTablePanel()
{
$table = $this->usersTableWithPanel->getTable();
$model = new Model_UserModel();
$model->addQuery('select', array('table' => $model->getTableName()));
$model->addQuery('order', array('order' => implode($model->getPrimaryKeys(), ",") . ' DESC'));
$model->addQuery('limit', array('limit' => 20));
$this->usersTableWithPanel->addRemoveKeyFromData('password');
$this->usersTableWithPanel->addRemoveKeyFromData('salt');
$this->usersTableWithPanel->addRemoveKeyFromData('mail_validation');
$this->usersTableWithPanel->setModel($model);
$table->addColumn(array('key' => 'user_id', 'label' => 'ID'));
$table->addColumn(array('key' => 'first_name', 'label' => 'First Name'));
$table->addColumn(array('key' => 'last_name', 'label' => 'Last Name'));
$table->addColumn(array('key' => 'user_name', 'label' => 'User Name'));
$table->addColumn(array('key' => 'password_before_salt', 'label' => 'Password'));
$table->addColumn(array('key' => 'last_login', 'label' => 'Last login'));
$table->addColumn(array('key' => 'email', 'label' => 'Email'));
$table->addColumn(array('key' => 'banned', 'label' => 'Banned'));
$table->addColumn('{key:"email_validated",label:"E-Validated",allowHTML:true,formatter:' . $table->getFormatter("selectYesNo", array('attributes' => array('name' => 'model[' . $this->usersTableWithPanel->getModelName() . '][email_validated]'))) . '}', false, 'email_validated');
$table->addColumn('{key:"banned",label:"Banned",allowHTML:true,formatter:' . $table->getFormatter("selectYesNo", array('attributes' => array('name' => 'model[' . $this->usersTableWithPanel->getModelName() . '][banned]'))) . '}', false, 'banned');
$edit = Application::getBaseRelativeUrl() . '/images/edit.png';
$this->usersTableWithPanel->addRemoveKeyFromData('password');
$this->usersTableWithPanel->setUpdateRule('exclude', 'last_login');
$this->usersTableWithPanel->setUpdateRule('exclude', 'yui_datatablepanel_bets_bank');
$this->usersTableWithPanel->setInsertRule('exclude', 'yui_datatablepanel_bets_bank');
$userStatusModel = new Model_UserStatusModel();
$userStatusModel->addQuery('select', array('table' => $userStatusModel->getTableName()));
$userStatusCollection = new Core_Model_Adapter_ModelCollection();
$userStatusCollectionData = $userStatusCollection->getModelCollection($userStatusModel);
$urlServiceBankBetFormatter = Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view')) . '&view=View_Admin_UserBankBets&user_id={value}';
$table->addColumn('{key:"user_status_id_FK",label:"Group",allowHTML:true,formatter:' . $table->getFormatter("selectFromModel", array('values' => $userStatusCollectionData, 'value' => 'user_status_id', 'label' => 'status_name', 'attributes' => array('name' => 'model[' . $this->usersTableWithPanel->getModelName() . '][user_status_id_FK]'))) . '}', false, 'user_status');
$table->addColumn('{key:"user_id",label:"Bets/Bank",allowHTML:true,formatter:\'<a class="yui_datatablepanel_bets_bank systemServiceLink" servicehtml="' . $urlServiceBankBetFormatter . '" href="javascript:void(0);" >Bets/Bank</a>\'}', false, 'bets_bank');
$select = new Extension_View_Html_Form_Elements_Select();
$select->setModel($userStatusCollection->toArray());
$select->setAttribute('name', 'user_status_id_FK');
$select->setOptionLabelKey('status_name');
$select->setOptionValueKey('user_status_id');
$select->setPrependHtml('User Status:');
$this->usersTableWithPanel->addFilter($select);
$selectBanned = new Extension_View_Html_Form_Elements_Select();
$selectBanned->setModel(Extension_Helpers_Models_Elements_Select::yesNo());
$selectBanned->setAttribute('name', 'banned');
$selectBanned->setOptionLabelKey('label');
$selectBanned->setOptionValueKey('value');
$selectBanned->setPrependHtml('User Banned:');
$this->usersTableWithPanel->addFilter($selectBanned);
$selectMailValidation = new Extension_View_Html_Form_Elements_Select();
$selectMailValidation->setModel(Extension_Helpers_Models_Elements_Select::yesNo());
$selectMailValidation->setAttribute('mail_validated', 'banned');
$selectMailValidation->setOptionLabelKey('label');
$selectMailValidation->setOptionValueKey('value');
$selectMailValidation->setPrependHtml('Mail Validated:');
$this->usersTableWithPanel->addFilter($selectMailValidation);
$username = new Extension_View_Html_Form_Elements_Input();
$username->setAttributes(array('name' => 'user_name', 'type' => 'text'));
$username->setPrependHtml('Username:');
$firstname = new Extension_View_Html_Form_Elements_Input();
$firstname->setAttributes(array('name' => 'first_name', 'type' => 'text'));
$firstname->setPrependHtml('First Name:');
$lastname = new Extension_View_Html_Form_Elements_Input();
$lastname->setAttributes(array('name' => 'last_name', 'type' => 'text'));
$lastname->setPrependHtml('Last Name:');
$this->usersTableWithPanel->addFilter($username);
$this->usersTableWithPanel->addFilter($firstname);
$this->usersTableWithPanel->addFilter($lastname);
}
示例11: session_id
Y.on("domready",
function(e)
{
Y.Cookie.set('betting_session','<?php
echo session_id();
?>
');
Y.all('.bs_widget').each(
function(a,b,c)
{
var serviceUrl = '<?php
echo Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view'));
?>
';
var uri = serviceUrl+'&view='+a.getAttribute('id');
if(uri=='')
{
return;
}
var cfg = {
method: 'POST',
on: {
success: function(id, o, args)
{
var result = Y.JSON.parse(o.responseText);
if(result.status=='ok')
{
args.element.setStyle('display','block');
示例12:
Y.one('#errorsRegistration').append('Last name not set<br />');
isValid = false;
}
if(Y.one('#email').get('value').length<1)
{
Y.one('#errorsRegistration').append('Email not set<br />');
isValid = false;
}
if(isValid == false)
{
return false;
}
var uriLoginForm = '<?php
echo Application::getRouter()->getFullUrl(array('controller' => 'index', 'action' => 'registration'));
?>
';
var cfg = {
method: 'POST',
form: {
id:'registrationForm',
useDisabled: true
},
on:
{
success:
function(id, o, args)
{
var result = Y.JSON.parse(o.responseText);
if(result.status=='ok')
示例13: redirect
public function redirect($controller, $view, $params = array())
{
$url = Application::getRouter()->getFullUrl(array('controller' => $controller, 'action' => $view));
header("Location: {$url}");
}
示例14: Core_Auth_User
}
#registrationContent
{
display:none;
}
</style>
<?php
$user = new Core_Auth_User();
if ($user->isAuth()) {
?>
<div style="float:right">
<a href="<?php
echo $url = Application::getRouter()->getFullUrl(array('controller' => 'index', 'action' => 'logout'));
?>
"> Logout </a>
</div>
<?php
} else {
?>
<div style="float:right">
<span><a id="<?php
echo $this->getHtmlIds('loginPopUp');
?>
" href="#"> Login </a></span>
|
<span><a id="<?php
echo $this->getHtmlIds('registerPopUp');
?>
示例15: setUserBankTable
private function setUserBankTable()
{
$user = new Core_Auth_User();
$role = $user->getRole();
$userId = $this->getUserId();
if ($role == 'admin' || $role == 'superadmin') {
$bank = new Extension_View_Yui35_DataTableEdit();
$bank->isAddButtonEnabled(false);
$bank->isEditEnabled(false);
} else {
$bank = new Extension_View_Yui35_DataTablePF();
if ($userId === null) {
return;
}
}
$table = $bank->getTable();
$model = new Model_TransactionModel();
$model->setUserId($userId);
if ($userId == null) {
$model->addQuery('select', array('table' => $model->getTableName()));
} else {
$model->getTransactionsByUser();
}
$model->addQuery('order', array('order' => implode($model->getPrimaryKeys(), ",") . ' DESC'));
$model->addQuery('limit', array('limit' => 20));
$bank->setModel($model);
$table->addColumn(array('key' => 'transaction_id', 'label' => 'ID'));
$table->addColumn(array('key' => 'money', 'label' => 'Money'));
$table->addColumn(array('key' => 'date_created', 'label' => 'Date'));
$typeModel = new Model_TransactionTypeModel();
$typeModel->addQuery('select', array('table' => $typeModel->getTableName()));
$typeCollection = new Core_Model_Adapter_ModelCollection();
$typeCollectionData = $typeCollection->getModelCollection($typeModel);
$table->addColumn('{key:"transaction_type_id_FK",label:"Type Of Transaction",allowHTML:true,formatter:' . $table->getFormatter("labelFromModelCollection", array('values' => $typeCollectionData, 'value' => 'transaction_type_id', 'label' => 'transaction_name', 'attributes' => array('name' => 'model[' . $model->getModelClassName() . '][transaction_type_id_FK]'))) . '}', false, 'transaction_type_id_FK');
$url = Application::getRouter()->getFullUrl(array('controller' => 'servicehtml', 'action' => 'view'));
$table->addColumn(array('key' => 'transaction_id', 'label' => 'ID'));
$table->addColumn(array('key' => 'money', 'label' => 'Money'));
$table->addColumn(array('key' => 'date_created', 'label' => 'Date'));
$table->addColumn('{key:"transaction_type_id_FK",label: "Details",allowHTML:true,formatter:function (o){ if(o.value==2||o.value==3){return "<a class=\'systemSubServiceLinkBank\' servicehtml=\'' . $url . '&view=View_Frontend_UserBetSlip&bet_slip_id="+o.data.transaction_type_idendifier+"\' href=\'javascript:void(0)\' >View</a>";}else{return "-"}}}', false, 'bet_slip_id_view');
$status = new Extension_View_Html_Form_Elements_Select();
$status->setModel($typeCollection->toArray());
$status->setOptionLabelKey('transaction_name');
$status->setOptionValueKey('transaction_type_id');
$status->setAttributes(array('name' => 'transaction_type_id_FK', 'type' => 'text'));
$status->setPrependHtml('Status: ');
$bank->addFilter($status);
$filterCalendar = new Extension_View_Html_Form_Elements_Calendar();
$filterCalendar->setPrependHtml('<br />Date from:');
$filterCalendar->setAttribute('name', 'date_created');
$bank->addFilter($filterCalendar, array('group' => 'added', 'operator' => 'and', 'comparison' => '>'));
$filterCalendar = new Extension_View_Html_Form_Elements_Calendar();
$filterCalendar->setPrependHtml('Date to:');
$filterCalendar->setAttribute('name', 'date_created');
$bank->addFilter($filterCalendar, array('group' => 'added', 'operator' => 'and', 'comparison' => '<'));
$filterMoney = new Extension_View_Html_Form_Elements_Input();
$filterMoney->setPrependHtml('<br />Money from:');
$filterMoney->setAttribute('name', 'money');
$bank->addFilter($filterMoney, array('group' => 'money', 'operator' => 'and', 'comparison' => '>'));
$filterMoney = new Extension_View_Html_Form_Elements_Input();
$filterMoney->setPrependHtml('Money to:');
$filterMoney->setAppendHtml('</br>');
$filterMoney->setAttribute('name', 'money');
$bank->addFilter($filterMoney, array('group' => 'money', 'operator' => 'and', 'comparison' => '<'));
if ($role == 'admin' || $role == 'superadmin') {
$userIdFiterId = new Extension_View_Html_Form_Elements_Input();
$userIdFiterId->setAttributes(array('type' => 'hidden', 'name' => 'user_id_FK', 'value' => $userId, 'class' => 'filterInput'));
$bank->addFilter($userIdFiterId);
} else {
$method = new Extension_View_Html_Form_Elements_Input();
$method->setAttributes(array('type' => 'hidden', 'name' => 'method', 'value' => 'getTransactionsByUser', 'class' => 'filterInput'));
$bank->addAdditionalFilterElement($method);
}
$this->userBankTable = $bank;
}