Development

Changeset 6606

You must first sign up to be able to contribute.

Changeset 6606

Show
Ignore:
Timestamp:
12/20/07 08:44:48 (1 year ago)
Author:
fabien
Message:

replaced parameterHolder->get() by getParameter()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/user/sfUser.class.php

    r5315 r6606  
    9090    //  - use the default culture set in i18n.yml 
    9191    $currentCulture = $storage->read(self::CULTURE_NAMESPACE); 
    92     $this->setCulture($this->parameterHolder->get('culture', !is_null($currentCulture) ? $currentCulture : $this->parameterHolder->get('default_culture', 'en'))); 
     92    $this->setCulture($this->getParameter('culture', !is_null($currentCulture) ? $currentCulture : $this->getParameter('default_culture', 'en'))); 
    9393 
    9494    // flag current flash to be removed at shutdown 
    95     if ($this->parameterHolder->get('use_flash', false) && $names = $this->attributeHolder->getNames('symfony/user/sfUser/flash')) 
     95    if ($this->getParameter('use_flash', false) && $names = $this->attributeHolder->getNames('symfony/user/sfUser/flash')) 
    9696    { 
    9797      if (sfConfig::get('sf_logging_enabled')) 
     
    131131  public function setFlash($name, $value, $persist = true) 
    132132  { 
    133     if (!$this->parameterHolder->get('use_flash', false)) 
     133    if (!$this->getParameter('use_flash', false)) 
    134134    { 
    135135      return; 
     
    158158  public function getFlash($name, $default = null) 
    159159  { 
    160     if (!$this->parameterHolder->get('use_flash', false)) 
     160    if (!$this->getParameter('use_flash', false)) 
    161161    { 
    162162      return $default; 
     
    175175  public function hasFlash($name) 
    176176  { 
    177     if (!$this->parameterHolder->get('use_flash', false)) 
     177    if (!$this->getParameter('use_flash', false)) 
    178178    { 
    179179      return false; 
     
    241241  { 
    242242    // remove flash that are tagged to be removed 
    243     if ($this->parameterHolder->get('use_flash', false) && $names = $this->attributeHolder->getNames('symfony/user/sfUser/flash/remove')) 
     243    if ($this->getParameter('use_flash', false) && $names = $this->attributeHolder->getNames('symfony/user/sfUser/flash/remove')) 
    244244    { 
    245245      if (sfConfig::get('sf_logging_enabled'))