Changeset 8535
- Timestamp:
- 04/18/08 19:42:22 (1 year ago)
- Files:
-
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/modules/attachment (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/modules/attachment/actions (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/modules/attachment/actions/actions.class.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/modules/attachment/templates (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/apps/frontend/modules/attachment/templates/indexSuccess.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/config/schema.xml (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/form/AttachmentForm.class.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/Attachment.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/lib/model/AttachmentPeer.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/test/functional/frontend/attachmentActionsTest.php (added)
- branches/1.1/lib/plugins/sfPropelPlugin/test/functional/formTest.php (added)
- branches/1.1/lib/validator/sfValidatorFile.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/test/functional/fixtures/config/schema.xml
r8296 r8535 59 59 </table> 60 60 61 <table name="attachment"> 62 <column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" /> 63 <column name="name" type="varchar" size="255" /> 64 <column name="file" type="varchar" size="255" /> 65 </table> 66 61 67 </database> branches/1.1/lib/validator/sfValidatorFile.class.php
r8525 r8535 312 312 313 313 /** 314 * Returns the name of the saved file. 315 */ 316 public function __toString() 317 { 318 return $this->savedName; 319 } 320 321 /** 314 322 * Saves the uploaded file. 315 323 * … … 386 394 public function getOriginalExtension($default = '') 387 395 { 388 return (false === $pos = str pos($this->getOriginalName(), '.')) ? $default : substr($this->getOriginalName(), $pos);396 return (false === $pos = strrpos($this->getOriginalName(), '.')) ? $default : substr($this->getOriginalName(), $pos); 389 397 } 390 398

