Beispiel #1
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $methods = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'];
     $methods = array_combine($methods, $methods);
     $builder->add($elementFactory->newInput('url', 'Url', 'text', 'Sends a HTTP request to the given url'));
     $builder->add($elementFactory->newSelect('method', 'Method', $methods, 'The used request method'));
     //$builder->add($elementFactory->newTextArea('headers', 'Headers', 'yaml', 'Optional the '));
     $builder->add($elementFactory->newTextArea('body', 'Body', 'text', 'The request body. Inside the body it is possible to use a template syntax to add dynamic data. Click <a ng-click="help.showDialog(\'help/template.md\')">here</a> for more informations about the template syntax.'));
 }
Beispiel #2
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newAction('action', 'Action', 'Action which gets executed after the transformation'));
     $builder->add($elementFactory->newTextArea('patch', 'Patch', 'json', 'JSON Patch operations which are applied to the request body. More informations about the JSON Patch format at <a href="https://tools.ietf.org/html/rfc6902">https://tools.ietf.org/html/rfc6902</a>'));
 }
Beispiel #3
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection', 'The MongoDB connection which should be used'));
     $builder->add($elementFactory->newInput('propertyName', 'Property name', 'text', 'The name of the property under which the result should be inserted'));
     $builder->add($elementFactory->newInput('collection', 'Collection', 'text', 'The data gets fetched from this collection'));
     $builder->add($elementFactory->newTextArea('criteria', 'Criteria', 'json', 'Specifies selection criteria using <a href="http://docs.mongodb.org/manual/reference/operator/">query operators</a>. To return all documents in a collection, omit this parameter or pass an empty document ({})'));
     $builder->add($elementFactory->newTextArea('projection', 'Projection', 'json', 'Specifies the fields to return using <a href="http://docs.mongodb.org/manual/reference/operator/projection/">projection operators</a>. To return all fields in the matching document, omit this parameter.'));
     $builder->add($elementFactory->newInput('sort', 'Sort', 'text', 'Sorts the entries after a specific key. I.e. <code>title=1</code> to order after the title ascending or <code>title=-1</code> for descending'));
     $builder->add($elementFactory->newInput('limit', 'Limit', 'text', 'Integer how many entries should be fetched'));
 }
Beispiel #4
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection', 'The MongoDB connection which should be used'));
     $builder->add($elementFactory->newInput('collection', 'Collection', 'text', 'The data gets fetched from this collection'));
     $builder->add($elementFactory->newTextArea('criteria', 'Criteria', 'json', 'Specifies selection criteria using <a href="http://docs.mongodb.org/manual/reference/operator/">query operators</a>. To return all documents in a collection, omit this parameter or pass an empty document ({})'));
     $builder->add($elementFactory->newTextArea('projection', 'Projection', 'json', 'Specifies the fields to return using <a href="http://docs.mongodb.org/manual/reference/operator/projection/">projection operators</a>. To return all fields in the matching document, omit this parameter.'));
 }
Beispiel #5
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newAction('action', 'Action', 'Action which gets executed if the validation was successful'));
     $builder->add($elementFactory->newTextArea('rules', 'Rules', 'yaml', 'The validation rules in YAML format. Click <a ng-click="help.showDialog(\'help/action/validator.md\')">here</a> for more informations about the format.'));
 }
Beispiel #6
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection'));
     $builder->add($elementFactory->newTextArea('sql', 'SQL', 'sql', 'The SELECT statment which gets executed. It is possible to access values from the environment with i.e. <code ng-non-bindable>{{ request.uriFragment("news_id")|prepare }}</code>. <b>Note you must use the prepare filter for each parameter in order to generate a safe SQL query which uses prepared statments.</b> Click <a ng-click="help.showDialog(\'help/template.md\')">here</a> for more informations about the template syntax.'));
 }
Beispiel #7
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection', 'The MongoDB connection which should be used'));
     $builder->add($elementFactory->newInput('collection', 'Collection', 'text', 'Inserts the document into this collection'));
     $builder->add($elementFactory->newTextArea('document', 'Document', 'json', 'The document containing the data'));
 }
Beispiel #8
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newTextArea('process', 'Process', 'yaml', 'The process description in the YAML format. Click <a ng-click="help.showDialog(\'help/action/processor.md\')">here</a> for more informations about the format.'));
 }
Beispiel #9
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection', 'The MongoDB connection which should be used'));
     $builder->add($elementFactory->newInput('collection', 'Collection', 'text', 'Removes the record from this collection'));
     $builder->add($elementFactory->newTextArea('criteria', 'Criteria', 'json', 'Query criteria which objects should be deleted'));
 }
Beispiel #10
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newSelect('statusCode', 'Status-Code', Http::$codes, 'The returned status code'));
     $builder->add($elementFactory->newTextArea('response', 'Response', 'json', 'The response in JSON format. Inside the response it is possible to use a template syntax to add dynamic data. Click <a ng-click="help.showDialog(\'help/template.md\')">here</a> for more informations about the template syntax.'));
 }
Beispiel #11
0
 public function configure(BuilderInterface $builder, ElementFactoryInterface $elementFactory)
 {
     $builder->add($elementFactory->newConnection('connection', 'Connection', 'The MongoDB connection which should be used'));
     $builder->add($elementFactory->newInput('collection', 'Collection', 'text', 'Inserts the document into this collection'));
     $builder->add($elementFactory->newTextArea('criteria', 'Criteria', 'json', 'Query criteria for the documents to update'));
     $builder->add($elementFactory->newTextArea('document', 'Document', 'json', 'The object used to update the matched documents'));
 }