centralM
[ class tree: centralM ] [ index: centralM ] [ all elements ]

Source for file actions.class.php

Documentation is available at actions.class.php

  1. <?php
  2.  
  3. /**
  4.  * view actions.
  5.  *
  6.  * @package    centralM
  7.  * @subpackage view
  8.  * @author     Your name here
  9.  * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
  10.  */
  11. class viewActions extends sfActions
  12. {
  13.   public function executeIndex(sfWebRequest $request)
  14.   {
  15.     $this->node_form new EtvaNodeForm();    
  16.   }
  17.  
  18.   public function executeVncviewer(sfWebRequest $request)
  19.   {
  20.  
  21.       $this->forward404Unless($etva_server EtvaServerPeer::retrieveByPk($request->getParameter('id'))sprintf('Object etva_server does not exist (%s).'$request->getParameter('id')));
  22.       
  23.       $user $this->getUser();
  24.       $tokens $user->getGuardUser()->getEtvaVncTokens();
  25.  
  26.       $this->username $tokens[0]->getUsername();
  27.       $this->token $tokens[0]->getToken();
  28.  
  29.       $proxyhost1 $request->getHost();
  30.       $proxyhost1 split(':',$proxyhost1);
  31.       $proxyhost1 $proxyhost1[0];
  32.  
  33.       $this->proxyhost1 $proxyhost1;
  34.       $this->host $etva_server->getIp();
  35.       $this->port $etva_server->getVncPort();
  36.      
  37.  
  38.   }
  39.  
  40.   public function executeView(sfWebRequest $request)
  41.   {
  42.       $this->node_form new EtvaNodeForm();
  43.       
  44.       $this->node_tableMap EtvaNodePeer::getTableMap();
  45.       
  46.   }
  47.  
  48.   public function executeNetworks(sfWebRequest $request)
  49.   {
  50.       $this->network_form new EtvaNetworkForm();
  51.       $this->network_tableMap EtvaNetworkPeer::getTableMap();
  52.  
  53.       $this->vlan_form new EtvaVlanForm();
  54.       $this->vlan_tableMap EtvaVlanPeer::getTableMap();
  55.     
  56.   }
  57.  
  58. }

Documentation generated on Fri, 19 Jun 2009 10:45:53 +0100 by phpDocumentor 1.4.2