Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2485288
RecordObserver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
578 B
Referenced Files
None
Subscribers
None
RecordObserver.php
View Options
<?php
namespace
App\Observers\PowerDNS
;
use
App\PowerDNS\Record
;
class
RecordObserver
{
public
function
created
(
$record
)
{
if
(
$record
->{
'type'
}
==
"SOA"
)
{
return
;
}
$record
->
domain
->
bumpSerial
();
}
public
function
deleted
(
$record
)
{
if
(
$record
->{
'type'
}
==
"SOA"
)
{
return
;
}
$record
->
domain
->
bumpSerial
();
}
public
function
updated
(
$record
)
{
if
(
$record
->{
'type'
}
==
"SOA"
)
{
return
;
}
$record
->
domain
->
bumpSerial
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 11:52 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387495
Default Alt Text
RecordObserver.php (578 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment