src/Traits/ComplementAction.php
private function doActions($action)
    {
        $type = self::getType('strtolower', false);

        Hook::getInstance(App::getCurrentID());
        Hook::doAction($type . '-load');
        Hook::doAction('after-loading-' . $this->complement['slug'] . '-' . $type);

        if (in_array($action, self::$hooks, true)) {
            $this->doAction($action);
        }
    }
private function doActions($action)
    {
        $type = self::getType('strtolower', false);

        Hook::getInstance(App::getCurrentID());
        Hook::doAction($type . '-load');
        Hook::doAction('after-loading-' . $this->complement['slug'] . '-' . $type);

        if (in_array($action, self::$hooks, true)) {
            $this->doAction($action);
        }
    }
private function doActions ( $ action ) { $ type = self :: getType ( 'strtolower' , false ) ; Hook :: getInstance ( App :: getCurrentID ( ) ) ; Hook :: doAction ( $ type . '-load' ) ; Hook :: doAction ( 'after-loading-' . $ this -> complement [ 'slug' ] . '-' . $ type ) ; if ( in_array ( $ action , self :: $ hooks , true ) ) { $ this -> doAction ( $ action ) ; } }
Execute action hooks.

@param string $action → action hook to execute

@uses \Eliasis\Framework\App::getCurrentID()
@uses \Josantonius\Hook\Hook::getInstance
@uses \Josantonius\Hook\Hook::doAction
@uses \Eliasis\Complement\Traits\ComplementHandler::getType()
Execute action hooks .