6.X/EMPS.php
/**
     * Post-init handler
     *
     * Called after the initialization of the EMPS object.
     */
Post-init handler
Called after the initialization of the EMPS object.
Post - init handler Called after the initialization of the EMPS object .
public function post_init()
    {
        if(strstr($_SERVER["CONTENT_TYPE"], "application/json")){
            $raw = file_get_contents("php://input");
            $request = json_decode($raw, true);
            $_REQUEST = array_merge($_REQUEST, $request);
            $_POST = array_merge($_POST, $request);
        }
        $this->prepare_menus();
    }
public function post_init ( ) { if ( strstr ( $ _SERVER [ " CONTENT_TYPE " ] , " application/json " ) ) { $ raw = file_get_contents ( " php://input " ) ; $ request = json_decode ( $ raw , true ) ; $ _REQUEST = array_merge ( $ _REQUEST , $ request ) ; $ _POST = array_merge ( $ _POST , $ request ) ; } $ this -> prepare_menus ( ) ; }
Post-init handler
 Called after the initialization of the EMPS object.
Post - init handler Called after the initialization of the EMPS object .