@@ 112-120 (lines=9) @@ | ||
109 | * @param integer $indice L'indice de l'image recherchée |
|
110 | * @return boolean Vrai si l'image existe sinon faux |
|
111 | */ |
|
112 | public function pictureExists($indice) |
|
113 | { |
|
114 | $return = false; |
|
115 | $fieldName = 'article_picture' . $indice; |
|
116 | if (xoops_trim($this->getVar($fieldName)) != '' && file_exists(references_utils::getModuleOption('images_path') . DIRECTORY_SEPARATOR . $this->getVar($fieldName))) { |
|
117 | $return = true; |
|
118 | } |
|
119 | ||
120 | return $return; |
|
121 | } |
|
122 | ||
123 | /** |
|
@@ 176-184 (lines=9) @@ | ||
173 | * @param integer $indice L'indice de l'image recherchée |
|
174 | * @return boolean Vrai si l'image existe sinon faux |
|
175 | */ |
|
176 | public function thumbExists($indice) |
|
177 | { |
|
178 | $fieldName = 'article_picture' . $indice; |
|
179 | $return = false; |
|
180 | if (xoops_trim($this->getVar($fieldName)) != '' && file_exists(references_utils::getModuleOption('images_path') . DIRECTORY_SEPARATOR . REFERENCES_THUMBS_PREFIX . $this->getVar($fieldName))) { |
|
181 | $return = true; |
|
182 | } |
|
183 | ||
184 | return $return; |
|
185 | } |
|
186 | ||
187 | /** |