Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117881573
DeleteJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
737 B
Referenced Files
None
Subscribers
None
DeleteJob.php
View Options
<?php
namespace
App\Jobs\Domain
;
use
App\Jobs\DomainJob
;
class
DeleteJob
extends
DomainJob
{
/**
* Execute the job.
*
* @return void
*/
public
function
handle
()
{
$domain
=
$this
->
getDomain
();
if
(!
$domain
)
{
return
;
}
// sanity checks
if
(
$domain
->
isDeleted
())
{
$this
->
fail
(
new
\Exception
(
"Domain {$this->domainId} is already marked as deleted."
));
return
;
}
\App\Backends\LDAP
::
deleteDomain
(
$domain
);
$domain
->
status
|=
\App\Domain
::
STATUS_DELETED
;
if
(
$domain
->
isLdapReady
())
{
$domain
->
status
^=
\App\Domain
::
STATUS_LDAP_READY
;
}
$domain
->
save
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Apr 5, 11:58 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831646
Default Alt Text
DeleteJob.php (737 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline