예제 #1
0
 public function process()
 {
     if (!$this->getSource()) {
         return $this->failure($this->modx->lexicon('permission_denied'));
     }
     $this->source->setRequestProperties($this->getProperties());
     $this->source->initialize();
     $fields = $this->getProperties();
     if (!$this->validate($fields)) {
         return $this->failure();
     }
     $response = $this->source->renameContainer($fields['path'], $fields['name']);
     return $this->handleResponse($response);
 }