Scalr_UI_Request::getEnvironment PHP 메소드

getEnvironment() 공개 메소드

Gets an environment instance which is associated with the request
public getEnvironment ( ) : Scalr_Environment
리턴 Scalr_Environment
    public function getEnvironment()
    {
        return $this->environment;
    }

Usage Example

예제 #1
0
 public function __construct()
 {
     $this->request = Scalr_UI_Request::getInstance();
     $this->response = Scalr_UI_Response::getInstance();
     $this->db = Core::getDBInstance();
     $this->user = $this->request->getUser();
     $this->environment = $this->request->getEnvironment();
     date_default_timezone_set(SCALR_SERVER_TZ);
 }
All Usage Examples Of Scalr_UI_Request::getEnvironment