| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
*
* @throws Exception
*/
- static function filePostProcess(
+ public static function filePostProcess(
$data,
$fileTypeID,
$entityTable,
*
* @return array
* An array with 2 elements. The string and the number of attachments
- * @static
*/
public static function attachmentInfo($entityTable, $entityID, $separator = '<br />') {
if (!$entityID) {
* @param $entityTable
* @param int $entityID
*/
- static function formatAttachment(
+ public static function formatAttachment(
&$formValues,
&$params,
$entityTable,
/**
* Delete a file attachment from an entity table / entity ID
*
- * @static
*/
public static function deleteAttachment() {
$params = array();
* @return array|NULL
* list of HTML snippets; one HTML snippet for each attachment. If none found, then NULL
*
- * @static
*/
public static function paperIconAttachment($entityTable, $entityID) {
if (empty($entityTable) || !$entityID) {
foreach ($currentAttachmentInfo as $fileKey => $fileValue) {
$fileID = $fileValue['fileID'];
$fileType = $fileValue['mime_type'];
- $eid = $entityID;
if ($fileID) {
if ($fileType == 'image/jpeg' ||
$fileType == 'image/pjpeg' ||
}
return NULL;
}
+
}