/**
  * Run transformation.
  * Transform XML-document in the output format and show the result to the client.
  * @param Document $document XML-document.
  * @return mixed
  */
 protected function transform($document)
 {
     $this->getTransformer()->setDocument($document->getResult());
     $result = $this->getTransformer()->transform();
     return $result;
 }
示例#2
0
 /**
  * Defines allowable component parameters and their default values as an array like <tt>array(paramName => defaultValue)</tt>
  * @return array
  */
 protected function defineParams()
 {
     return ['state' => $this->state, 'rights' => $this->document->getRights(), 'config' => false, 'active' => false];
 }