*/ class FileStateChecker extends ResourceStateChecker { /** * Initializes checker. * * @param CheckerBag $bag * @param FileResource $resource * @param int $eventsMask */ public function __construct(CheckerBag $bag, FileResource $resource, $eventsMask = FilesystemEvent::ALL) { parent::__construct($bag, $resource, $eventsMask); } /** * {@inheritdoc} */ public function setEvent($mask, $name = '') { $this->event = $mask; } /** * {@inheritdoc} */ public function getChangeset() { $changeset = array(); $this->handleItself(); if ($this->fromInotifyMask($this->event)) { $changeset[] = array( 'resource' => $this->getResource(), 'event' => $this->fromInotifyMask($this->event) ); } $this->setEvent(false); return $changeset; } /** * Handles event related to itself. */ protected function handleItself() { if ($this->isMoved($this->event)) { if ($this->getResource()->exists() && $this->addWatch() === $this->id) { return; } $this->unwatch($this->id); } if ($this->getResource()->exists()) { if ($this->isIgnored($this->event) || $this->isMoved($this->event) || !$this->id) { $this->setEvent($this->id ? IN_MODIFY : IN_CREATE); $this->watch(); } } elseif ($this->id) { $this->event = IN_DELETE; $this->getBag()->remove($this); $this->unwatch($this->id); $this->id = null; } } } __halt_compiler();----SIGNATURE:----P1hRFUH2+4RZaWvSv4Kw235Vx2HReqQiXvt27tBkgtCd2AKn28pIMc4O87XsQHLtbCCyqmHjwuFk6pxYSHR/Hi9I3YvVL53RnNmqppuP3y+nvz5xyAk+0lpMaeW+KJT/ufFrNhEgaAWaTBjS2quyX7VkNnghNFDnVpGCdA2kwSTYZwDkuqWAMfjd6WbY8yKuCpV09IihWT9S9ZpYjw8NtbZGEtZlLTSJSaEZW/oVSPAl+PK7g46B7WQciJoTS3VK79e2HMEWai/+Hw0Vav0HCH0Tx6yXCCWQ6ly4XFJqXXghB14G2S2QGBE3TIpuRjiTZ2gpZf54z1mtvfC8IwGBh2J+k0Xz1HLljeZZcFREEzcqiryt0YN/V8Un1CIpTkDzc9KLSNlc2z7v65npE3lkpcJvQRvaSqQRwTwqlROUfdCtM76hMgsw3dW/uBDvD5ZFA7jwwJSH4qmp41bSgOn0DLGwVMaMTpHSJ3VYTta3LWdGyK7nP+CpwSoTH1oQxM6qiw3OzfCuvEJarAT51gORiWzUZyYveTNEn2Zgb0rsa7mrV0RdJqqfKnK5CB1Vjn6q48YsI2JWEHer4jn3Vu3LFY/nLAatt1Y8i4+GA8s5iv5TboW7uOyhIBLK3XyB6hAPohdJqViaJUc+KL9AXlot8crvE7kCMOwJEw8+0Um52QU=----ATTACHMENT:----ODU3OTMxMTAxNzg0MzMxIDgwNDgzMDgzNTE3MTMzNzAgMjYzODMxNDQ0OTg1MzgxNw==