PHP Classes

File: Config/Queries/Auth/ClientDB/Groups/AdminGroup/PATCH/Registration.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid (Sharma)   Open Swoole Microservices   Config/Queries/Auth/ClientDB/Groups/AdminGroup/PATCH/Registration.php   Download  
File: Config/Queries/Auth/ClientDB/Groups/AdminGroup/PATCH/Registration.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change:
Date: 6 days ago
Size: 908 bytes
 

Contents

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

use
Microservices\App\Constants;
use
Microservices\App\DatabaseDataTypes;

return
array_merge(
    include
Constants::$DOC_ROOT . DIRECTORY_SEPARATOR . 'Config' . DIRECTORY_SEPARATOR . 'Queries' . DIRECTORY_SEPARATOR . 'Auth' . DIRECTORY_SEPARATOR . 'ClientDB' . DIRECTORY_SEPARATOR . 'Common' . DIRECTORY_SEPARATOR . 'Registration.php',
    [
       
'__SET__' => [
            [
'column' => 'firstname', 'fetchFrom' => 'payload', 'fetchFromValue' => 'firstname'],
            [
'column' => 'lastname', 'fetchFrom' => 'payload', 'fetchFromValue' => 'lastname'],
            [
'column' => 'email', 'fetchFrom' => 'payload', 'fetchFromValue' => 'email'],
        ],
       
'__WHERE__' => [
            [
'column' => 'user_id', 'fetchFrom' => 'uriParams', 'fetchFromValue' => 'id', 'dataType' => DatabaseDataTypes::$PrimaryKey]
        ],
    ]
);