protected function step2(){

        $this->view->addToBlock("form", "import://admin/setup/requirements");
        $this->view->setData("step", "2");
        $this->view->setData("title", t("Installation | Requirements"));

        $systemcheck = new Helpers\Requirements();
        $requirements = [];
        $directives = require_once( PATH_CONFIG.'/requirements.inc' );


        //Check Modules
        $server = ["title"=>"Required Server Software", "tests"=>[]];
        foreach( $directives["server"] as $name=>$directive ){
            $server["tests"][] = $systemcheck->testServerVersions($name, $directive);
        }
        $requirements[] = $server;


        //Check Modules
        $modules = ["title"=>"Required Modules", "tests"=>[]];
        foreach( $directives["modules"] as $name=>$directive ){
            $modules["tests"][] = $systemcheck->testModule($name, $directive);
        }
        $requirements[] = $modules;

        //Check Modules
        $limits = ["title"=>"Required Resource Limits", "tests"=>[]];
        foreach( $directives["limits"] as $name=>$directive ){
            $limits["tests"][] = $systemcheck->testLimit($name, $directive);
        }
        $requirements[] = $limits;


        //Check Modules
        $directories = ["title"=>"Required Folder Permissions", "tests"=>[]];
        foreach( $directives["directories"] as $name=>$directive ){

            $directories["tests"][] = $systemcheck->testFolderPermissions($directive["path"], $directive);
        }
        $requirements[] =  $directories;




        $this->view->setDataArray( ["requirements"=> $requirements ]);


        return;

    }
protected function step2(){

        $this->view->addToBlock("form", "import://admin/setup/requirements");
        $this->view->setData("step", "2");
        $this->view->setData("title", t("Installation | Requirements"));

        $systemcheck = new Helpers\Requirements();
        $requirements = [];
        $directives = require_once( PATH_CONFIG.'/requirements.inc' );


        //Check Modules
        $server = ["title"=>"Required Server Software", "tests"=>[]];
        foreach( $directives["server"] as $name=>$directive ){
            $server["tests"][] = $systemcheck->testServerVersions($name, $directive);
        }
        $requirements[] = $server;


        //Check Modules
        $modules = ["title"=>"Required Modules", "tests"=>[]];
        foreach( $directives["modules"] as $name=>$directive ){
            $modules["tests"][] = $systemcheck->testModule($name, $directive);
        }
        $requirements[] = $modules;

        //Check Modules
        $limits = ["title"=>"Required Resource Limits", "tests"=>[]];
        foreach( $directives["limits"] as $name=>$directive ){
            $limits["tests"][] = $systemcheck->testLimit($name, $directive);
        }
        $requirements[] = $limits;


        //Check Modules
        $directories = ["title"=>"Required Folder Permissions", "tests"=>[]];
        foreach( $directives["directories"] as $name=>$directive ){

            $directories["tests"][] = $systemcheck->testFolderPermissions($directive["path"], $directive);
        }
        $requirements[] =  $directories;




        $this->view->setDataArray( ["requirements"=> $requirements ]);


        return;

    }
protected function step2 ( ) { $ this -> view -> addToBlock ( "form" , "import://admin/setup/requirements" ) ; $ this -> view -> setData ( "step" , "2" ) ; $ this -> view -> setData ( "title" , t ( "Installation | Requirements" ) ) ; $ systemcheck = new Helpers \ Requirements ( ) ; $ requirements = [ ] ; $ directives = require_once ( PATH_CONFIG . '/requirements.inc' ) ; //Check Modules $ server = [ "title" => "Required Server Software" , "tests" => [ ] ] ; foreach ( $ directives [ "server" ] as $ name => $ directive ) { $ server [ "tests" ] [ ] = $ systemcheck -> testServerVersions ( $ name , $ directive ) ; } $ requirements [ ] = $ server ; //Check Modules $ modules = [ "title" => "Required Modules" , "tests" => [ ] ] ; foreach ( $ directives [ "modules" ] as $ name => $ directive ) { $ modules [ "tests" ] [ ] = $ systemcheck -> testModule ( $ name , $ directive ) ; } $ requirements [ ] = $ modules ; //Check Modules $ limits = [ "title" => "Required Resource Limits" , "tests" => [ ] ] ; foreach ( $ directives [ "limits" ] as $ name => $ directive ) { $ limits [ "tests" ] [ ] = $ systemcheck -> testLimit ( $ name , $ directive ) ; } $ requirements [ ] = $ limits ; //Check Modules $ directories = [ "title" => "Required Folder Permissions" , "tests" => [ ] ] ; foreach ( $ directives [ "directories" ] as $ name => $ directive ) { $ directories [ "tests" ] [ ] = $ systemcheck -> testFolderPermissions ( $ directive [ "path" ] , $ directive ) ; } $ requirements [ ] = $ directories ; $ this -> view -> setDataArray ( [ "requirements" => $ requirements ] ) ; return ; }
Step2 of the installation process. Validates that the EULA has been
accepted from step 1. Performs a validation of the system requirements.
@todo This method does not at this stage stop the installation proces on any failures
@return void
Step2 of the installation process . Validates that the EULA has been accepted from step 1 . Performs a validation of the system requirements .