%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/main/inc/lib/hook/
Upload File :
Create Path :
Current File : //home/tjamichg/cursos.tjamich.gob.mx/main/inc/lib/hook/CheckLoginCredentialsHook.php

<?php
/* For licensing terms, see /license.txt */

/**
 * Class CheckLoginCredentialsHook.
 */
class CheckLoginCredentialsHook extends HookEvent implements CheckLoginCredentialsHookEventInterface
{
    /**
     * CheckLoginCredentialsHook constructor.
     *
     * @throws Exception
     */
    protected function __construct()
    {
        parent::__construct('CheckLoginCredentialsHook');
    }

    /**
     * Call to all observers.
     *
     * @return bool
     */
    public function notifyLoginCredentials()
    {
        /** @var CheckLoginCredentialsHookObserverInterface $observer */
        foreach ($this->observers as $observer) {
            $isChecked = $observer->checkLoginCredentials($this);

            if ($isChecked) {
                return true;
            }
        }

        return false;
    }
}

Zerion Mini Shell 1.0