PHP Classes
elePHPant
Icontem

File: sample/Cst/Classes/Cst.json

Recommend this page to a friend!
  Classes of Rafael Becker  >  PHP Expressive  >  sample/Cst/Classes/Cst.json  >  Download  
File: sample/Cst/Classes/Cst.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Expressive
Base class for Object Relational Mapping
Author: By
Last change:
Date: 1 month ago
Size: 1,932 bytes
 

Contents

Class file image Download
{
  "database": {
    "repository": "tbcst",
    "keys": "cstcodigo",
    "actions": {
      "whenInsert": {
        "before": [
          {
            "class": "Sample\\Cst\\Classes\\Helper",
            "function": "testeDeFuncaoInsert1",
            "params": [
              "this",
              "Param 1",
              "Param 2"
            ]
          },
          {
            "class": "Sample\\Cst\\Classes\\Helper",
            "function": "testeDeFuncaoInsert2",
            "params": "Param 1"
          }
        ]
      },
      "whenUpdate": {
        "before": [
          {
            "class": "Sample\\Cst\\Classes\\Helper",
            "function": "testeDeFuncaoUpdate1",
            "params": [
              "this",
              "Param 1",
              "Param 2"
            ]
          }
        ]
      },
      "whenDelete": {
        "before": [
          {
            "class": "Sample\\Cst\\Classes\\Helper",
            "function": "testeDeFuncaoDelete1",
            "params": [
              "this",
              "Param 1",
              "Param 2"
            ]
          }
        ],
        "after": [
          {
            "class": "Sample\\Cst\\Classes\\Helper",
            "function": "testeDeFuncaoDelete1"
          }
        ]
      }
    }
  },
  "properties": [
    {
      "alias": "iCstCodigo",
      "property": "cstcodigo",
      "type": "int",
      "behavior": {
        "required": "false",
        "autoIncrement": "true",
        "incrementalBehavior": "application"
      }
    },
    {
      "alias": "iCsttipo",
      "property": "csttipo",
      "type": "int"
    },
    {
      "alias": "sCstCst",
      "property": "cstcst",
      "type": "string"
    },
    {
      "alias": "sCstDescricao",
      "property": "cstdescricao",
      "type": "string"
    },
    {
      "alias": "iCstSt",
      "property": "cstsubstituicaotributaria",
      "type": "int"
    }
  ]
}