public static function trigger()
    {
        $args = func_get_args();

        //Check if trigger have parrams
        $haveParams = count($args) > 1 ? true : false;

        //Get events
        $events = self::splite($args[0]);

        if ($haveParams && count($events) > 1) {
            throw new ManyListenersArgumentsException();
        }

        if (count($events) > 1) {
            self::runMany($events);
        } elseif (count($events) == 1) {
            self::runOne($events, array_except($args, 0));
        }

        return true;
    }
public static function trigger()
    {
        $args = func_get_args();

        //Check if trigger have parrams
        $haveParams = count($args) > 1 ? true : false;

        //Get events
        $events = self::splite($args[0]);

        if ($haveParams && count($events) > 1) {
            throw new ManyListenersArgumentsException();
        }

        if (count($events) > 1) {
            self::runMany($events);
        } elseif (count($events) == 1) {
            self::runOne($events, array_except($args, 0));
        }

        return true;
    }
public static function trigger ( ) { $ args = func_get_args ( ) ; //Check if trigger have parrams $ haveParams = count ( $ args ) > 1 ? true : false ; //Get events $ events = self :: splite ( $ args [ 0 ] ) ; if ( $ haveParams && count ( $ events ) > 1 ) { throw new ManyListenersArgumentsException ( ) ; } if ( count ( $ events ) > 1 ) { self :: runMany ( $ events ) ; } elseif ( count ( $ events ) == 1 ) { self :: runOne ( $ events , array_except ( $ args , 0 ) ) ; } return true ; }
Fire a trigger.

@param
@param

@return
Fire a trigger .