protected function getTmpDir() {
		if (!self::$tmpDir) {
			$tmpDir = $this->getAppRoot() . self::$globalOptions['tmpDir'];
			if (!\MvcCore\Application::GetInstance()->GetCompiled()) {
				if (!is_dir($tmpDir)) mkdir($tmpDir, 0777, TRUE);
				if (!is_writable($tmpDir)) {
					try {
						@chmod($tmpDir, 0777);
					} catch (\Exception $e) {
						$selfClass = version_compare(PHP_VERSION, '5.5', '>') ? self::class : __CLASS__;
						throw new \Exception('['.$selfClass.'] ' . $e->getMessage());
					}
				}
			}
			self::$tmpDir = $tmpDir;
		}
		return self::$tmpDir;
	}
protected function getTmpDir() {
		if (!self::$tmpDir) {
			$tmpDir = $this->getAppRoot() . self::$globalOptions['tmpDir'];
			if (!\MvcCore\Application::GetInstance()->GetCompiled()) {
				if (!is_dir($tmpDir)) mkdir($tmpDir, 0777, TRUE);
				if (!is_writable($tmpDir)) {
					try {
						@chmod($tmpDir, 0777);
					} catch (\Exception $e) {
						$selfClass = version_compare(PHP_VERSION, '5.5', '>') ? self::class : __CLASS__;
						throw new \Exception('['.$selfClass.'] ' . $e->getMessage());
					}
				}
			}
			self::$tmpDir = $tmpDir;
		}
		return self::$tmpDir;
	}
protected function getTmpDir ( ) { if ( ! self :: $ tmpDir ) { $ tmpDir = $ this -> getAppRoot ( ) . self :: $ globalOptions [ 'tmpDir' ] ; if ( ! \ MvcCore \ Application :: GetInstance ( ) -> GetCompiled ( ) ) { if ( ! is_dir ( $ tmpDir ) ) mkdir ( $ tmpDir , 0777 , TRUE ) ; if ( ! is_writable ( $ tmpDir ) ) { try { @ chmod ( $ tmpDir , 0777 ) ; } catch ( \ Exception $ e ) { $ selfClass = version_compare ( PHP_VERSION , '5.5' , '>' ) ? self :: class : __CLASS__ ; throw new \ Exception ( '[' . $ selfClass . '] ' . $ e -> getMessage ( ) ) ; } } } self :: $ tmpDir = $ tmpDir ; } return self :: $ tmpDir ; }
Return and store application document root from controller view request object
@throws \Exception
@return string
Return and store application document root from controller view request object