src/magicphp/events.class.php
public static function Set($sName, $fCallback){
            $oThis = self::CreateInstanceIfNotExists();
            $sName = strtolower(str_replace(array("/", "\\", "--"), "-", $sName));//Bugfix
            $oThis->aEvents[$sName] = array("type" => "default", "func" => $fCallback);
        }
public static function Set($sName, $fCallback){
            $oThis = self::CreateInstanceIfNotExists();
            $sName = strtolower(str_replace(array("/", "\\", "--"), "-", $sName));//Bugfix
            $oThis->aEvents[$sName] = array("type" => "default", "func" => $fCallback);
        }
public static function Set ( $ sName , $ fCallback ) { $ oThis = self :: CreateInstanceIfNotExists ( ) ; $ sName = strtolower ( str_replace ( array ( "/" , "\\" , "--" ) , "-" , $ sName ) ) ; //Bugfix $ oThis -> aEvents [ $ sName ] = array ( "type" => "default" , "func" => $ fCallback ) ; }
Function to set the event

@static
@access public
@param string $sName
@param function $fCallback
@return void
Function to set the event