private function _formatAttachements($asAttachments)
{
if (empty($asAttachments)) {
return '';
}
$_aAttachments = $this->getAsArray($asAttachments);
foreach ($_aAttachments as $_iIndex => $_sPathORURL) {
if (is_file($_sPathORURL)) {
continue;
}
if (false !== filter_var($_sPathORURL, FILTER_VALIDATE_URL)) {
if ($_sPath = $this->_getPathFromURL($_sPathORURL)) {
$_aAttachments[$_iIndex] = $_sPath;
continue;
}
}
unset($_aAttachments[$_iIndex]);
}
return $_aAttachments;
}