lib/basis.php
private function executeTraits($type)
    {
        if (empty($this->usedTraits))
        {
            return;
        }

        switch ($type)
        {
            case 'prolog':
                $type = 'Prolog';
            break;

            case 'main':
                $type = 'Main';
            break;

            default:
                $type = 'Epilog';
            break;
        }

        foreach ($this->usedTraits as $trait => $name)
        {
            $method = 'execute'.$type.$name;

            if (method_exists($trait, $method))
            {
                $this->$method();
            }
        }
    }
private function executeTraits($type)
    {
        if (empty($this->usedTraits))
        {
            return;
        }

        switch ($type)
        {
            case 'prolog':
                $type = 'Prolog';
            break;

            case 'main':
                $type = 'Main';
            break;

            default:
                $type = 'Epilog';
            break;
        }

        foreach ($this->usedTraits as $trait => $name)
        {
            $method = 'execute'.$type.$name;

            if (method_exists($trait, $method))
            {
                $this->$method();
            }
        }
    }
private function executeTraits ( $ type ) { if ( empty ( $ this -> usedTraits ) ) { return ; } switch ( $ type ) { case 'prolog' : $ type = 'Prolog' ; break ; case 'main' : $ type = 'Main' ; break ; default : $ type = 'Epilog' ; break ; } foreach ( $ this -> usedTraits as $ trait => $ name ) { $ method = 'execute' . $ type . $ name ; if ( method_exists ( $ trait , $ method ) ) { $ this -> $ method ( ) ; } } }
Executing methods prolog, getResult and epilog included traits

@param string $type prolog, getResult or epilog
Executing methods prolog getResult and epilog included traits