PHP Classes

File: Config/Queries/ClientDB/Common/Registration.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   PHP Microservices Framework   Config/Queries/ClientDB/Common/Registration.php   Download  
File: Config/Queries/ClientDB/Common/Registration.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: Refactor
Date: 11 days ago
Size: 464 bytes
 

Contents

Class file image Download
<?php
namespace Microservices\Config\Queries\ClientDB\Common;

use
Microservices\App\Constants;

return [
   
'query' => "UPDATE `registration` SET __SET__ WHERE __WHERE__",
   
'validate' => [
        [
           
'fn' => 'primaryKeyExist',
           
'fnArgs' => [
               
'table' => ['custom', 'registration'],
               
'primary' => ['custom', 'id'],
               
'id' => ['uriParams', 'id']
            ],
           
'errorMessage' => 'Invalid registration id'
       
],
    ]
];