Ejemplo n.º 1
0
 /**
  * @param string[] $hooks
  */
 protected function sendHooks($hooks)
 {
     foreach ($hooks as $hook) {
         $this->root->emit('\\OC\\Files', $hook, array($this));
     }
 }
Ejemplo n.º 2
0
 public function postCopy($arguments)
 {
     $source = $this->getNodeForPath($arguments['oldpath']);
     $target = $this->getNodeForPath($arguments['newpath']);
     $this->root->emit('\\OC\\Files', 'postCopy', [$source, $target]);
 }