Development

Changeset 1365

You must first sign up to be able to contribute.

Changeset 1365

Show
Ignore:
Timestamp:
05/14/06 15:02:45 (3 years ago)
Author:
fabien
Message:

added a new param type to include_partial() calls in admin generator

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/generator/sfPropelAdminGenerator.class.php

    r1340 r1365  
    262262    if ($column->isPartial()) 
    263263    { 
    264       return "include_partial('".$column->getName()."', array('{$this->getSingularName()}' => \${$this->getSingularName()}))"; 
     264      return "include_partial('".$column->getName()."', array('type' => 'edit', '{$this->getSingularName()}' => \${$this->getSingularName()}))"; 
    265265    } 
    266266 
     
    512512    if ($column->isPartial()) 
    513513    { 
    514       return "include_partial('".$column->getName()."', array('{$this->getSingularName()}' => \${$this->getSingularName()}))"; 
     514      return "include_partial('".$column->getName()."', array('type' => 'list', '{$this->getSingularName()}' => \${$this->getSingularName()}))"; 
    515515    } 
    516516    else if ($type == CreoleTypes::DATE || $type == CreoleTypes::TIMESTAMP) 
     
    537537    if ($column->isPartial()) 
    538538    { 
    539       return "include_partial('".$column->getName()."', array('filters' => \$filters))"; 
     539      return "include_partial('type' => 'filter', '".$column->getName()."', array('filters' => \$filters))"; 
    540540    } 
    541541