*/ 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:----Ly6jghGGF2VtAAJN7/V1ay+hoNLlC7WS6UYZmx+Aoytqbt8FAINbeaZFCYvs+H2onOV9QLCyCvjX4oCdYr7+tzQVAxckDbAdUggYxqw9PB1EK/9wBh7R0SBo6+qP5Lhy2dc5aTRipe9mgSSigOUMAhtQaXSDCsk3vN+koo940GwVotZ9D+xKaHKTLGfRqEOy8whFGAW9xa+Xl3sDvayi0EaW50Fg2IcYvoyaMH2mblGL8xxi9Eju9VnkqD8bkSDzNvzJQc562nAr6uCmc09CFx8N1UnfzgfVlrB0PN9mNgW4FG8rsi0j5eijtkRBDiEIxpUqZgmRq9fhqdJeQc3oHlQ+2/yrVlawFx34YxA7fZP/WLR2L9nWr3bjeVzeU0/P01wNDSaA2u8FxBEeOHexNcj/lD60jZWLuJfScZgCrggy6WFy0puwpMQeI72X48oYp0KKwchp/AiQuBEaakcHcn8tkVBHidozEOi2uxfy4Wx73nOJv7YUdrjeDXAzLecpW+piTFgiWemzv7vpbP49SgwpfGTlig15EJtIxOmGPfB2jMzDh4RnjO+7Qd8QXsfnumbxPKJwfdirLyP9qSE3cZIiFPrJwq7s0QHm7Pvp2OJ/OKM8sEbExzbKNGMHuVJDiXkWIWNnIbi4E+nkPC2R++j9+PFcqVc7oRGdXRXktUE=----ATTACHMENT:----MTYwNzY3NzMyNTYxNzIxMyA4MTUyOTgwNzc1NzI5OTE4IDE0Nzg3OTkxMTQzNzk5MjE=