PHP Classes

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

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid (Sharma)   PHP Microservices Framework   Config/Queries/Auth/ClientDB/Common/Registration.php   Download  
File: Config/Queries/Auth/ClientDB/Common/Registration.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: Support for same col multiple time
Adding double underscore for fields that can be used in __SUB-QUERY__
Test-cases
Open to Web
Date: 12 days ago
Size: 490 bytes
 

Contents

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

use
Microservices\App\DatabaseDataTypes;

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