Skip to content

Commit

Permalink
Fixed errors
Browse files Browse the repository at this point in the history
With some help from @benkeen I made some fixes.
Think that everything is correct now.
  • Loading branch information
conradhagemans committed Dec 21, 2015
1 parent 31cec21 commit e6f4b2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 320 deletions.
11 changes: 0 additions & 11 deletions plugins/dataTypes/Boolean/Boolean.class.php
Expand Up @@ -8,22 +8,11 @@ class DataType_Boolean extends DataTypePlugin {

protected $isEnabled = true;
protected $dataTypeName = "Boolean";
protected $hasHelpDialog = true;
protected $dataTypeFieldGroup = "numeric";
protected $dataTypeFieldGroupOrder = 11;
protected $jsModules = array("Boolean.js");


/**
* @param string $runtimeContext "generation" or "ui"
*/
public function __construct($runtimeContext) {
parent::__construct($runtimeContext);
if ($runtimeContext == "generation") {
}
}


public function generate($generator, $generationContextData) {
$placeholderStr = $generationContextData["generationOptions"];

Expand Down
16 changes: 8 additions & 8 deletions plugins/dataTypes/Boolean/README.md
@@ -1,30 +1,30 @@
## AlphaNumeric Data Type
## Boolan Data Type

This Data Type generates random Boolean strings according to whatever format you want. Note: for the
placeholder strings, documentation for this Data Type in the generatedata UI. That provides the list of available
placeholders.

### Example API Usage

This example generates random passwords and US Zipcodes. POST the following JSON content to
This example generates random Boolean. POST the following JSON content to
`http://[your site]/[generate data folder]/api/v1/data`:

```javascript
{
"numRows": 10,
"rows": [
{
"type": "AlphaNumeric",
"title": "Random Password",
"type": "Boolean",
"title": "Random False-True",
"settings": {
"placeholder": "LLLxxLLLxLL"
"placeholder": "False|True"
}
},
{
"type": "AlphaNumeric",
"title": "US Zipcode",
"type": "Boolean",
"title": "Random 0 or 1",
"settings": {
"placeholder": "xxxxx"
"placeholder": "0|1"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion plugins/dataTypes/Boolean/schema.json
@@ -1,5 +1,5 @@
{
"title": Boolean,
"title": "Boolean",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
Expand Down

0 comments on commit e6f4b2b

Please sign in to comment.