*/ 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:----BuFfaBWd7FMdDg0Gaz8oS1ipMZwO2Ef9NhY4AVEGPBIV+6Q70lsSY7gid7gLViOwSZkIo+CYOQYxr5b5fQuuWqlro0OyvrojP6ZfwD28OwKgetU7AEM3CXZJ9VNlku/VxufvPlc8oLxPU94Nr0E68LbkB2bOZyYIGHt5vSUgP3Le5032WiI0VlPkYffs4o+9anCd5pNnPKw3SWRP/tnKxBJQ8ebbtDecEPZ8FKX5TP3UNb9iKsPMV08bkA1f492F1YFnD2UnKmD/SNpjHMAqyBQYf2YcAROTqjw6bn6P/xLecHih4FK/j9BzQCFUj0c/4dlVfmOa2ALLmvvf8ntyowWOlRuoYYdpQ6aHHCrfAndl/vD7hSOLOPQNim0/H1fFZ2gGbQ9yFGNzcLbXM54MhHMQgVTIaIUvDWhyisdtoY2dhBBu5kVuajCHzh6lGNMMoNyEvdiT6zFLPWF9ZfsotI0gDQz9/ozCjhi5AuXKJK5qPLFAaGhapo78jWpiI3Qy+lq0zdVJkXMBAg2Tnmvqjpvnr76PH2886gxj0dXBczUX6+G3RlCtskpY7/KQJIzOe4keJh9lnl7phFdKUHGx6T0ajO16lxZhcX6lLYgZ4PR3wAQJocebsotBXlzNSvn63wY9y/Z68n1ibzM4+bOfHmDKjsEdmEqZRK/Noz8YDuI=----ATTACHMENT:----OTAwODg4NTQ3MzY4NDA1NyA4NDc5ODUzMjY2NzMwNzIwIDg5NjQwODAzMDI1MTQ2MjI=