src/magicphp/app.class.php
public static function Append($sName, $sDirectory){
            $oThis = self::CreateInstanceIfNotExists();
            
            if(array_key_exists($sName, $oThis->aModules)){
                return $oThis->aModules[$sName];
            }
            else{
                $oModule = new Module($sName, $sDirectory);
                $oThis->aModules[$sName] = $oModule;
                return $oModule;
            }
        }
public static function Append($sName, $sDirectory){
            $oThis = self::CreateInstanceIfNotExists();
            
            if(array_key_exists($sName, $oThis->aModules)){
                return $oThis->aModules[$sName];
            }
            else{
                $oModule = new Module($sName, $sDirectory);
                $oThis->aModules[$sName] = $oModule;
                return $oModule;
            }
        }
public static function Append ( $ sName , $ sDirectory ) { $ oThis = self :: CreateInstanceIfNotExists ( ) ; if ( array_key_exists ( $ sName , $ oThis -> aModules ) ) { return $ oThis -> aModules [ $ sName ] ; } else { $ oModule = new Module ( $ sName , $ sDirectory ) ; $ oThis -> aModules [ $ sName ] = $ oModule ; return $ oModule ; } }
Function to append a module

@static
@param string $sName Module name
@param string $sDirectory Path of module
@return \Module
Function to append a module