src/magicphp/events.class.php
public static function SetPerRoute($sName, $sRoute, $sMethod, $fCallback){
            $oThis = self::CreateInstanceIfNotExists();
            $sRoute = strtolower(str_replace(array("/", "\\", "--"), "-", $sRoute));//Bugfix
            $oThis->aEvents[strtolower($sMethod."_".$sRoute."_".$sName)] = array("type" => "perroute", "func" => $fCallback, "route" => $sRoute, "method" => $sMethod);
        }
public static function SetPerRoute($sName, $sRoute, $sMethod, $fCallback){
            $oThis = self::CreateInstanceIfNotExists();
            $sRoute = strtolower(str_replace(array("/", "\\", "--"), "-", $sRoute));//Bugfix
            $oThis->aEvents[strtolower($sMethod."_".$sRoute."_".$sName)] = array("type" => "perroute", "func" => $fCallback, "route" => $sRoute, "method" => $sMethod);
        }
public static function SetPerRoute ( $ sName , $ sRoute , $ sMethod , $ fCallback ) { $ oThis = self :: CreateInstanceIfNotExists ( ) ; $ sRoute = strtolower ( str_replace ( array ( "/" , "\\" , "--" ) , "-" , $ sRoute ) ) ; //Bugfix $ oThis -> aEvents [ strtolower ( $ sMethod . "_" . $ sRoute . "_" . $ sName ) ] = array ( "type" => "perroute" , "func" => $ fCallback , "route" => $ sRoute , "method" => $ sMethod ) ; }
Function to ser the evenet per route

@static
@access public
@param string $sName
@param string $sRoute
@param string $sMethod
@param function $fCallback
@return void
Function to ser the evenet per route