コード例 #1
0
 public function listAction()
 {
     $oComponentGrid = new AM_Component_List_Revision($this, $this->iIssueId);
     $oComponentGrid->show();
     $oComponetPager = new AM_Component_Pager($this, 'pager', $oComponentGrid);
     $oComponetPager->show();
 }
コード例 #2
0
 public function listAction()
 {
     $oBreadCrumbHelper = new AM_View_Helper_Breadcrumbs($this->view, $this->oDb, $this->getUser(), AM_View_Helper_Breadcrumbs::ISSUE, $this->_getAllParams());
     $oBreadCrumbHelper->show();
     $oGridComponent = new AM_Component_List_Issue($this, $this->iApplicationId);
     $oGridComponent->show();
     $oPagerComponent = new AM_Component_Pager($this, 'pager', $oGridComponent);
     $oPagerComponent->show();
 }
コード例 #3
0
 /**
  * Device list action
  */
 public function listAction()
 {
     $oComponentFilter = new AM_Component_Filter($this, 'filter', array('controls' => array('identifer' => array('title' => 'UDID'), 'linked' => array('title' => 'Only linked to users'))));
     if ($oComponentFilter->operation()) {
         return $this->_redirect($this->getHelper('Url')->url($oComponentFilter->getUrlParams(), null, true));
     }
     $oComponentFilter->show();
     $oGrid = new AM_Component_List_Devices($this, 'grid', $oComponentFilter);
     $oGrid->show();
     $oPager = new AM_Component_Pager($this, 'pager', $oGrid);
     $oPager->show();
 }
コード例 #4
0
 /**
  * Client list action
  */
 public function listAction()
 {
     $oGrid = new AM_Component_List_Client($this);
     $oGrid->show();
     $oPager = new AM_Component_Pager($this, 'pager', $oGrid);
     $oPager->show();
 }
コード例 #5
0
 /**
  * List application action
  */
 public function listAction()
 {
     $oGridComponent = new AM_Component_List_Subscription($this, $this->iApplicationId);
     $oGridComponent->show();
     $oPagerComponent = new AM_Component_Pager($this, 'pager', $oGridComponent);
     $oPagerComponent->show();
     $oApplication = AM_Model_Db_Table_Abstract::factory('application')->findOneBy('id', $this->iApplicationId);
     $this->view->iAppId = $this->iApplicationId;
     $this->view->iClientId = $oApplication->client;
     $this->view->aAppTitle = $oApplication->title;
 }
コード例 #6
0
 /**
  * List application action
  */
 public function listAction()
 {
     if ($this->_aUserInfo['role'] == 'admin') {
         $iClientId = $this->_getParam('cid');
     } else {
         $iClientId = $this->_aUserInfo['client'];
     }
     if (!$iClientId) {
         throw new AM_Controller_Exception_BadRequest();
     }
     $oGrid = new AM_Component_List_Application($this, $iClientId);
     $oGrid->show();
     $oPager = new AM_Component_Pager($this, 'pager', $oGrid);
     $oPager->show();
     $this->view->clientId = $iClientId;
 }