Development

Changeset 24162

You must first sign up to be able to contribute.

Changeset 24162

Show
Ignore:
Timestamp:
11/18/09 23:05:38 (4 years ago)
Author:
jpruitt
Message:

Upgraded for Symfony 1.4; Plus a Little Cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/csDoctrineActAsAttachablePlugin/branches/1.4/lib/model/doctrine/PluginAttachment.class.php

    r23869 r24162  
    88  public function __toString() 
    99  { 
    10       return $this->name; 
     10    return $this->name; 
    1111  } 
     12 
    1213  public function getObject() 
    1314  { 
    1415    return Doctrine::getTable($this->getObjectClass())->findOneById($this->getObjectId()); 
    1516  } 
     17 
    1618  public function getDefaultFilepath() 
    1719  { 
    18     sfLoader::loadHelpers('Url'); 
     20    sfContext::getInstance()->getConfiguration()->loadHelpers('Url'); 
     21 
    1922    return public_path($this->getUploadPath()); 
    2023  } 
     24 
    2125  public function getUploadPath() 
    2226  { 
    23     return 'uploads/'.strtolower($this->getObjectClass()).'/'.$this->getUrl(); 
     27    return 'uploads/' . strtolower($this->getObjectClass()) . '/' . $this->getUrl(); 
    2428  } 
     29 
    2530  public function getAttachmentRoute() 
    2631  {