Changeset 12051
- Timestamp:
- 10/07/08 20:09:15 (2 months ago)
- Files:
-
- plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineCrud/default/template/templates/indexSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineCrud/default/template/templates/showSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/branches/1.1/lib/generator/sfDoctrineCrudGenerator.class.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineCrud/default/template/templates/indexSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineCrud/default/template/templates/showSuccess.php (modified) (1 diff)
- plugins/sfDoctrinePlugin/trunk/lib/generator/sfDoctrineCrudGenerator.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php
r5647 r12051 14 14 <?php foreach ($this->getColumns('') as $column): ?> 15 15 <?php if ($column->isPrimaryKey()): ?> 16 <td>[?php echo link_to($<?php echo $this->getSingularName() ?> ->get('<?php echo $column->getPhpName() ?>'), '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>); ?]</td>16 <td>[?php echo link_to($<?php echo $this->getSingularName() ?>['<?php echo $column->getPhpName() ?>'], '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>); ?]</td> 17 17 <?php else: ?> 18 <td>[?php echo $<?php echo $this->getSingularName() ?> ->get('<?php echo $column->getPhpName() ?>'); ?]</td>18 <td>[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getPhpName() ?>']; ?]</td> 19 19 <?php endif; ?> 20 20 <?php endforeach; ?> plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php
r5647 r12051 4 4 <tr> 5 5 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>: </th> 6 <td>[?= $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>6 <td>[?= $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 7 7 </tr> 8 8 <?php endforeach; ?> plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineCrud/default/template/templates/indexSuccess.php
r11494 r12051 15 15 <?php foreach ($this->getAllColumns() as $column): ?> 16 16 <?php if ($column->isPrimaryKey()): ?> 17 <td><a href="[?php echo url_for('<?php echo $this->getModuleName() ?>/<?php echo isset($this->params['with_show']) && $this->params['with_show'] ? 'show' : 'edit' ?>?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]">[?php echo $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</a></td>17 <td><a href="[?php echo url_for('<?php echo $this->getModuleName() ?>/<?php echo isset($this->params['with_show']) && $this->params['with_show'] ? 'show' : 'edit' ?>?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]">[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</a></td> 18 18 <?php else: ?> 19 <td>[?php echo $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>19 <td>[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 20 20 <?php endif; ?> 21 21 <?php endforeach; ?> plugins/sfDoctrinePlugin/branches/1.1/data/generator/sfDoctrineCrud/default/template/templates/showSuccess.php
r11494 r12051 4 4 <tr> 5 5 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>:</th> 6 <td>[?= $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>6 <td>[?= $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 7 7 </tr> 8 8 <?php endforeach; ?> plugins/sfDoctrinePlugin/branches/1.1/lib/generator/sfDoctrineCrudGenerator.class.php
r11703 r12051 212 212 if ($developed) 213 213 { 214 return sprintf("$%s%s ->get('%s')", $prefix, $this->getSingularName(), $column->getName());214 return sprintf("$%s%s['%s']", $prefix, $this->getSingularName(), $column->getName()); 215 215 } 216 216 plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineAdmin/crud/template/templates/listSuccess.php
r5647 r12051 14 14 <?php foreach ($this->getColumns('') as $column): ?> 15 15 <?php if ($column->isPrimaryKey()): ?> 16 <td>[?php echo link_to($<?php echo $this->getSingularName() ?> ->get('<?php echo $column->getPhpName() ?>'), '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>); ?]</td>16 <td>[?php echo link_to($<?php echo $this->getSingularName() ?>['<?php echo $column->getPhpName() ?>'], '<?php echo $this->getModuleName() ?>/show?<?php echo $this->getPrimaryKeyUrlParams() ?>); ?]</td> 17 17 <?php else: ?> 18 <td>[?php echo $<?php echo $this->getSingularName() ?> ->get('<?php echo $column->getPhpName() ?>'); ?]</td>18 <td>[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getPhpName() ?>']; ?]</td> 19 19 <?php endif; ?> 20 20 <?php endforeach; ?> plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineAdmin/crud/template/templates/showSuccess.php
r5647 r12051 4 4 <tr> 5 5 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>: </th> 6 <td>[?= $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>6 <td>[?= $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 7 7 </tr> 8 8 <?php endforeach; ?> plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineCrud/default/template/templates/indexSuccess.php
r11494 r12051 15 15 <?php foreach ($this->getAllColumns() as $column): ?> 16 16 <?php if ($column->isPrimaryKey()): ?> 17 <td><a href="[?php echo url_for('<?php echo $this->getModuleName() ?>/<?php echo isset($this->params['with_show']) && $this->params['with_show'] ? 'show' : 'edit' ?>?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]">[?php echo $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</a></td>17 <td><a href="[?php echo url_for('<?php echo $this->getModuleName() ?>/<?php echo isset($this->params['with_show']) && $this->params['with_show'] ? 'show' : 'edit' ?>?<?php echo $this->getPrimaryKeyUrlParams() ?>) ?]">[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</a></td> 18 18 <?php else: ?> 19 <td>[?php echo $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>19 <td>[?php echo $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 20 20 <?php endif; ?> 21 21 <?php endforeach; ?> plugins/sfDoctrinePlugin/trunk/data/generator/sfDoctrineCrud/default/template/templates/showSuccess.php
r11494 r12051 4 4 <tr> 5 5 <th><?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>:</th> 6 <td>[?= $<?php echo $this->getSingularName() ?> ->get<?php echo $column->getPhpName() ?>()?]</td>6 <td>[?= $<?php echo $this->getSingularName() ?>['<?php echo $column->getName() ?>'] ?]</td> 7 7 </tr> 8 8 <?php endforeach; ?> plugins/sfDoctrinePlugin/trunk/lib/generator/sfDoctrineCrudGenerator.class.php
r11703 r12051 214 214 if ($developed) 215 215 { 216 return sprintf("$%s%s ->get('%s')", $prefix, $this->getSingularName(), $column->getName());216 return sprintf("$%s%s['%s']", $prefix, $this->getSingularName(), $column->getName()); 217 217 } 218 218