@@ -97,6 +97,9 @@ |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param \Symfony\Component\HttpFoundation\FileBag $file |
|
| 102 | + */ |
|
| 100 | 103 | private function initEvent($file,$model,$model_id) |
| 101 | 104 | { |
| 102 | 105 | $event = new UploadEvent(); |
@@ -109,6 +109,9 @@ |
||
| 109 | 109 | return $this->em->getRepository('MykeesMediaBundle:Media')->queryForModelAndId($model,$model_id); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $model |
|
| 114 | + */ |
|
| 112 | 115 | public function unlink($model, Media $media) |
| 113 | 116 | { |
| 114 | 117 | $info = pathinfo($media->getFile()); |
@@ -232,6 +232,7 @@ |
||
| 232 | 232 | * Note: this function has been modified to simple return true or false |
| 233 | 233 | * @author <[email protected]> |
| 234 | 234 | * @param string UTF-8 encoded string |
| 235 | + * @param string $str |
|
| 235 | 236 | * @return boolean true if valid |
| 236 | 237 | * @see http://hsivonen.iki.fi/php-utf8/ |
| 237 | 238 | */ |