propel
[
class tree: propel
] [
index: propel
] [
all elements
]
Packages:
propel
centralM
lib-model-map
lib-model-om
sfGuardPlugin
symfony
Source for file EtvaNetwork.php
Documentation is available at
EtvaNetwork.php
<?php
class
EtvaNetwork
extends
BaseEtvaNetwork
{
public
function
save
(
PropelPDO
$con
=
null
)
{
$etva_vlan
=
EtvaVlanPeer
::
retrieveByName
(
$this
->
getVlan
(
))
;
$etva_mac
=
EtvaMacPeer
::
retrieveByMac
(
$this
->
getMac
(
))
;
if
(
!
$etva_vlan
||
!
$etva_mac
)
return
;
$ret
=
parent
::
save
(
$con
)
;
return
$ret
;
}
public
function
removeMacFlag
(
)
{
$mac
=
EtvaMacPeer
::
retrieveByMac
(
$this
->
mac
)
;
$mac
->
setInUse
(
0
)
;
$mac
->
save
(
)
;
}
}
Documentation generated on Fri, 19 Jun 2009 10:49:11 +0100 by
phpDocumentor 1.4.2