parent
							
								
									cb5789fc65
								
							
						
					
					
						commit
						9ce60a3afe
					
				@ -0,0 +1,34 @@ | 
				
			||||
<?php | 
				
			||||
 | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * Class HookDocumentItemView. | 
				
			||||
 */ | 
				
			||||
class HookDocumentItemView extends HookEvent implements HookDocumentItemViewEventInterface | 
				
			||||
{ | 
				
			||||
    /** | 
				
			||||
     * HookDocumentItemView constructor. | 
				
			||||
     * | 
				
			||||
     * @throws Exception | 
				
			||||
     */ | 
				
			||||
    protected function __construct() | 
				
			||||
    { | 
				
			||||
        parent::__construct('HookDocumentItemView'); | 
				
			||||
    } | 
				
			||||
 | 
				
			||||
    /** | 
				
			||||
     * @inheritDoc | 
				
			||||
     */ | 
				
			||||
    public function notifyDocumentItemView(): array | 
				
			||||
    { | 
				
			||||
        $tools = []; | 
				
			||||
 | 
				
			||||
        /** @var HookDocumentItemViewObserverInterface $observer */ | 
				
			||||
        foreach ($this->observers as $observer) { | 
				
			||||
            $tools[] = $observer->notifyDocumentItemView($this); | 
				
			||||
        } | 
				
			||||
 | 
				
			||||
        return $tools; | 
				
			||||
    } | 
				
			||||
} | 
				
			||||
@ -0,0 +1,11 @@ | 
				
			||||
<?php | 
				
			||||
 | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
interface HookDocumentItemViewEventInterface extends HookEventInterface | 
				
			||||
{ | 
				
			||||
    /** | 
				
			||||
     * @return array | 
				
			||||
     */ | 
				
			||||
    public function notifyDocumentItemView(): array; | 
				
			||||
} | 
				
			||||
@ -0,0 +1,16 @@ | 
				
			||||
<?php | 
				
			||||
 | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * Interface HookDocumentItemViewObserverInterface. | 
				
			||||
 */ | 
				
			||||
interface HookDocumentItemViewObserverInterface extends HookObserverInterface | 
				
			||||
{ | 
				
			||||
    /** | 
				
			||||
     * @param HookDocumentItemViewEventInterface $hookvent | 
				
			||||
     * | 
				
			||||
     * @return string | 
				
			||||
     */ | 
				
			||||
    public function notifyDocumentItemView(HookDocumentItemViewEventInterface $hookvent): string; | 
				
			||||
} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue