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

Source for file EtvaNetwork.php

Documentation is available at EtvaNetwork.php

  1. <?php
  2.  
  3. class EtvaNetwork extends BaseEtvaNetwork
  4. {
  5.     public function save(PropelPDO $con null)
  6.     {
  7.         
  8.         $etva_vlan EtvaVlanPeer::retrieveByName($this->getVlan());
  9.         $etva_mac EtvaMacPeer::retrieveByMac($this->getMac());
  10.  
  11.         if(!$etva_vlan || !$etva_mac)
  12.             return;
  13.         
  14.         $ret parent::save($con);
  15.  
  16.         return $ret;
  17.     }
  18.  
  19.  
  20.     public function removeMacFlag()
  21.     {
  22.         
  23.         $mac EtvaMacPeer::retrieveByMac($this->mac);
  24.         $mac->setInUse(0);
  25.         $mac->save();
  26.  
  27.  
  28.   }
  29. }

Documentation generated on Fri, 19 Jun 2009 10:49:11 +0100 by phpDocumentor 1.4.2