| 122 | | public function __call($method, $arguments) |
|---|
| 123 | | { |
|---|
| 124 | | // try |
|---|
| 125 | | // { |
|---|
| 126 | | // parent::__call($method, $arguments); |
|---|
| 127 | | // } |
|---|
| 128 | | // catch(Exception $e) |
|---|
| 129 | | // { |
|---|
| 130 | | foreach ($this->_options['types'] as $type) |
|---|
| 131 | | { |
|---|
| 132 | | if(sfInflector::camelize('get_'.$type.'_attachments') == $method) |
|---|
| 133 | | { |
|---|
| 134 | | return $this->getAttachmentsByType($type); |
|---|
| 135 | | } |
|---|
| 136 | | } |
|---|
| 137 | | // } |
|---|
| 138 | | } |
|---|
| | 122 | // public function __call($method, $arguments) |
|---|
| | 123 | // { |
|---|
| | 124 | // try |
|---|
| | 125 | // { |
|---|
| | 126 | // parent::__call($method, $arguments); |
|---|
| | 127 | // } |
|---|
| | 128 | // catch(Exception $e) |
|---|
| | 129 | // { |
|---|
| | 130 | // foreach ($this->_options['types'] as $type) |
|---|
| | 131 | // { |
|---|
| | 132 | // if(sfInflector::camelize('get_'.$type.'_attachments') == $method) |
|---|
| | 133 | // { |
|---|
| | 134 | // return $this->getAttachmentsByType($type); |
|---|
| | 135 | // } |
|---|
| | 136 | // } |
|---|
| | 137 | // } |
|---|
| | 138 | // } |
|---|