foreach ($currentAttachmentInfo as $fileKey => $fileValue) {
$fileID = $fileValue['fileID'];
$fileType = $fileValue['mime_type'];
- $eid = $entityID;
if ($fileID) {
if ($fileType == 'image/jpeg' ||
$fileType == 'image/pjpeg' ||
* @param bool $i18nRewrite
* @param bool $trapException
*
- * @return CRM_Core_DAO
+ * @return CRM_Core_DAO|object
* object that holds the results of the query
+ * NB - if this is defined as just returning a DAO phpstorm keeps pointing
+ * out all the properties that are not part of the DAO
*/
public static function &executeQuery(
$query,
<?php
-/**
+/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
/**
* Class constructor
*
- * @param null $title
+ * @param string $title
* @param bool|int $action
* @param bool $modal
*/
CRM_Core_BAO_File::uploadNames()
);
- $config = CRM_Core_Config::singleton();
- $this->addActions($config->uploadDir,
+ $this->addActions(CRM_Core_Config::singleton()->uploadDir,
$uploadNames
);
}