芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/modules/Mail/Classes/AttachmentCollection.php
FilterList(function ($oAttachment) use ($bCheckContentID) { return $oAttachment && $oAttachment->isInline() && ($bCheckContentID ? ($oAttachment->getCid() ? true : false) : true); }); return is_array($aList) ? count($aList) : 0; } /** * Indicates if collection includes not inline attachments. * * @return bool */ public function hasNotInlineAttachments() { return 0 < $this->Count() && $this->Count() > $this->getInlineCount(true); } /** * Indicates if collection includes at least one vcard attachment. * * @return bool */ public function hasVcardAttachment() { $aList = $this->FilterList(function ($oAttachment) { return $oAttachment && $oAttachment->isVcard(); }); return is_array($aList) && 0 < count($aList); } /** * Indicates if collection includes at least one ical attachment. * * @return bool */ public function hasIcalAttachment() { $aList = $this->FilterList(function ($oAttachment) { return $oAttachment && $oAttachment->isIcal(); }); return is_array($aList) && 0 < count($aList); } }