views/helpers/filename.php
<?php
/**
* Zend_View_Helper_testTeamsidebar
*
* Helper for displaying product prices (human readable)
*
* @category Storefront
* @package Storefront_View_Helper
*/
class Zend_View_Helper_testTeamsidebar extends Zend_View_Helper_Abstract {
const TEAM_MENU_TYPE = 3;
/**
* A function to get team left menus text to another line
*
* Type: function<br>
* Name: testTeamSideBar<br>
* Author: Rathinasamy<br>
* Created: Sep 01,2011<br>
* @param void
* @exception none
* @return void.
*/
public function testTeamsidebar(){
//-- fetch related informations from
//-- database and show them
$request = Zend_Controller_Front::getInstance()->getRequest();
$testTeamID = $request->getParam('test_testTeam_id');
$userACL = $request->getParam('test_testTeam_user_acl');
$userPRMSN = $request->getParam('test_testTeam_user_permission');
$testTeamUserRole = $userACL['role'];
$this->view->assign('testTeam_user_permission',$userPRMSN);
if($testTeamID>0)
{
//--- get testTeam information using the testTeam id
$otestTeam = new testTeam();
$record = $otestTeam->getCompletetestTeamByID($testTeamID);
$this->view->assign('data',$record);
//-- get testTeam sidebar menu informations
if($testTeamUserRole > 0){
$oMenu = new Menu();
$aMenus = $oMenu->getMenus($testTeamUserRole,self::TEAM_MENU_TYPE);
$this->view->assign('testTeam_side_menus',$aMenus);
}
}
return $this->view->render('helpers/testTeamsidebar.phtml');
}
}
<?php
/**
* Zend_View_Helper_testTeamsidebar
*
* Helper for displaying product prices (human readable)
*
* @category Storefront
* @package Storefront_View_Helper
*/
class Zend_View_Helper_testTeamsidebar extends Zend_View_Helper_Abstract {
const TEAM_MENU_TYPE = 3;
/**
* A function to get team left menus text to another line
*
* Type: function<br>
* Name: testTeamSideBar<br>
* Author: Rathinasamy<br>
* Created: Sep 01,2011<br>
* @param void
* @exception none
* @return void.
*/
public function testTeamsidebar(){
//-- fetch related informations from
//-- database and show them
$request = Zend_Controller_Front::getInstance()->getRequest();
$testTeamID = $request->getParam('test_testTeam_id');
$userACL = $request->getParam('test_testTeam_user_acl');
$userPRMSN = $request->getParam('test_testTeam_user_permission');
$testTeamUserRole = $userACL['role'];
$this->view->assign('testTeam_user_permission',$userPRMSN);
if($testTeamID>0)
{
//--- get testTeam information using the testTeam id
$otestTeam = new testTeam();
$record = $otestTeam->getCompletetestTeamByID($testTeamID);
$this->view->assign('data',$record);
//-- get testTeam sidebar menu informations
if($testTeamUserRole > 0){
$oMenu = new Menu();
$aMenus = $oMenu->getMenus($testTeamUserRole,self::TEAM_MENU_TYPE);
$this->view->assign('testTeam_side_menus',$aMenus);
}
}
return $this->view->render('helpers/testTeamsidebar.phtml');
}
}
No comments:
Post a Comment