public function BeforeDelete($item)
    {
       $contContainers = ContentContainer::Schema()->FetchByContainer(true, $item);
       $logger = new Logger(BackendModule::Guard()->GetUser());
       foreach ($contContainers as $contContainer)
       {
           $content = $contContainer->GetContent();
           $provider = ContentTreeUtil::GetTreeProvider($content);
           $tree = new TreeBuilder($provider);
           $logger->ReportContentAction($content, Action::Delete());
           $tree->Remove($provider->ItemByContent($content));
       }
    }
public function BeforeDelete($item)
    {
       $contContainers = ContentContainer::Schema()->FetchByContainer(true, $item);
       $logger = new Logger(BackendModule::Guard()->GetUser());
       foreach ($contContainers as $contContainer)
       {
           $content = $contContainer->GetContent();
           $provider = ContentTreeUtil::GetTreeProvider($content);
           $tree = new TreeBuilder($provider);
           $logger->ReportContentAction($content, Action::Delete());
           $tree->Remove($provider->ItemByContent($content));
       }
    }
public function BeforeDelete ( $ item ) { $ contContainers = ContentContainer :: Schema ( ) -> FetchByContainer ( true , $ item ) ; $ logger = new Logger ( BackendModule :: Guard ( ) -> GetUser ( ) ) ; foreach ( $ contContainers as $ contContainer ) { $ content = $ contContainer -> GetContent ( ) ; $ provider = ContentTreeUtil :: GetTreeProvider ( $ content ) ; $ tree = new TreeBuilder ( $ provider ) ; $ logger -> ReportContentAction ( $ content , Action :: Delete ( ) ) ; $ tree -> Remove ( $ provider -> ItemByContent ( $ content ) ) ; } }
Deletes the container contents related to the container
@param Container $item The container to be deleted
Deletes the container contents related to the container