Development

Changeset 5840

You must first sign up to be able to contribute.

Changeset 5840

Show
Ignore:
Timestamp:
11/04/07 15:24:54 (1 year ago)
Author:
fabien
Message:

added the culture as an argument to i18n Propel getters and setters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/plugins/sfPropelPlugin/lib/propel/builder/SfObjectBuilder.php

    r5815 r5840  
    156156 
    157157          $script .= ' 
    158   public function get'.$col->getPhpName().'() 
    159   { 
    160     $obj = $this->getCurrent'.$className.'(); 
    161  
    162     return ($obj ? $obj->get'.$col->getPhpName().'() : null); 
    163   } 
    164  
    165   public function set'.$col->getPhpName().'($value) 
    166   { 
    167     $this->getCurrent'.$className.'()->set'.$col->getPhpName().'($value); 
     158  public function get'.$col->getPhpName().'($culture = null) 
     159  { 
     160    return $this->getCurrent'.$className.'($culture)->get'.$col->getPhpName().'(); 
     161  } 
     162 
     163  public function set'.$col->getPhpName().'($value, $culture = null) 
     164  { 
     165    $this->getCurrent'.$className.'($culture)->set'.$col->getPhpName().'($value); 
    168166  } 
    169167';