PHP Classes

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

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid   PHP Microservices Framework   Config/Queries/ClientDB/GET/Registration.php   Download  
File: Config/Queries/ClientDB/GET/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: 12 days ago
Size: 729 bytes
 

Contents

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

//return represents root for hierarchyData
use Microservices\App\Constants;

return [
   
'query' => "SELECT * FROM `registration` WHERE __WHERE__",
   
'__WHERE__' => [
       
'is_deleted' => ['custom', 'No']
    ],
   
'mode' => 'multipleRowFormat',//Multiple rows returned.
   
'subQuery' => [
       
'reg-address' => [
           
'query' => "SELECT * FROM `address` WHERE __WHERE__",
           
'__WHERE__' => [
               
'is_deleted' => ['custom', 'No'],
               
'registration_id' => ['hierarchyData', 'return:id'],
            ],
           
'mode' => 'multipleRowFormat',//Multiple rows returned.
       
]
    ],
   
'useHierarchy' => true
];