PHP code example of wwtg99 / data_pool

1. Go to this page and download the library: Download wwtg99/data_pool library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wwtg99 / data_pool example snippets


$mapper = $conn->getMapper('test\TestMapper'); //mapper should implement IDataMapper
$re = $mapper->select('*', ['panel__id'=>'1']);
var_dump($re);

$mapper->setContext(['order'=>'>field1,<field2']);
$re = $mapper->search('1', ['name']);
var_dump($re);