- Timestamp:
- 10/03/08 17:45:22 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/plain_php/trunk/core/ApplicationContext.php
r20040 r20610 2 2 3 3 class ApplicationContext 4 { 5 protected $baseUrl, $basePath, $templateBaseUrl, $templateBasePath; 6 function __construct($base_path, 7 $base_url, 8 $template_base_path, 9 $template_base_url, 10 $cookie_domain, 11 $cookie_path) 12 { 13 $_ = $this; 14 list($_->basePath, 15 $_->baseUrl, 16 $_->templateBasePath, 17 $_->templateBaseUrl, 18 $_->cookieDomain, 19 $_->cookiePath) = func_get_args(); 20 } 4 { 5 protected $baseUrl, $basePath, $templateBaseUrl, $templateBasePath, $dsn, $dbUser, $dbPassword, $cookieDomain, $cookiePath; 21 6 function __get($name) 22 7 { … … 24 9 return $this->{$name}; 25 10 } 11 function setBaseUrl($v) 12 { 13 $this->baseUrl = $v; 14 return $this; 15 } 16 function setBasePath($v) 17 { 18 $this->basePath = $v; 19 return $this; 20 } 21 function setTemplateBaseUrl($v) 22 { 23 $this->templateBaseUrl = $v; 24 return $this; 25 } 26 27 function setTemplateBasePath($v) 28 { 29 $this->templateBasePath = $v; 30 return $this; 31 } 32 33 function setDsn($v) 34 { 35 $this->dsn = $v; 36 return $this; 37 } 38 function setDbUser($v) 39 { 40 $this->dbUser = $v; 41 return $this; 42 } 43 function setDbPassword($v) 44 { 45 $this->dbPassword = $v; 46 return $this; 47 } 48 49 function setCookiePath($v) 50 { 51 $this->cookiePath = $v; 52 return $this; 53 } 54 function setCookieDomain($v) 55 { 56 $this->cookieDomain = $v; 57 return $this; 58 } 26 59 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)