A super easy PHP Framework for web development!
https://github.com/exacti/phacil-framework
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.6 KiB
72 lines
1.6 KiB
6 years ago
|
<?php
|
||
3 years ago
|
/*
|
||
|
* Copyright © 2021 ExacTI Technology Solutions. All rights reserved.
|
||
|
* GPLv3 General License.
|
||
|
* https://exacti.com.br
|
||
|
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
|
||
|
*/
|
||
|
|
||
|
namespace Phacil\Framework\Databases;
|
||
|
|
||
3 years ago
|
use Phacil\Framework\Interfaces\Databases;
|
||
|
|
||
3 years ago
|
/**
|
||
|
* Nullable fake simulated DB connection.
|
||
|
*
|
||
|
* @package Phacil\Framework\Databases
|
||
|
*/
|
||
3 years ago
|
final class nullStatement implements Databases {
|
||
3 years ago
|
//private $connection;
|
||
6 years ago
|
|
||
|
public function __construct($hostname, $username, $password, $database, $charset = 'utf8mb4') {
|
||
3 years ago
|
//$this->connection = NULL;
|
||
6 years ago
|
}
|
||
|
|
||
3 years ago
|
public function isConnected() {
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
|
||
2 years ago
|
/**
|
||
|
*
|
||
|
* @param string $sql
|
||
|
* @return \Phacil\Framework\Databases\Object\ResultInterface|true
|
||
|
*/
|
||
6 years ago
|
public function query($sql) {
|
||
2 years ago
|
$result = new \Phacil\Framework\Databases\Object\Result();
|
||
6 years ago
|
$result->num_rows = NULL;
|
||
|
$result->row = NULL;
|
||
|
$result->rows = NULL;
|
||
|
return $result;
|
||
|
}
|
||
|
|
||
|
public function escape($value) {
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
public function countAffected() {
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
public function getLastId() {
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
public function __destruct() {
|
||
|
return NULL;
|
||
|
}
|
||
11 months ago
|
|
||
|
/**
|
||
|
* Execute a prepared statement with parameters
|
||
|
*
|
||
|
* @param string $sql SQL query with named placeholders
|
||
|
* @param array $params Associative array of parameters
|
||
|
* @return null
|
||
|
* @throws \Phacil\Framework\Exception
|
||
|
*/
|
||
|
public function execute($sql, array $params = [])
|
||
|
{
|
||
|
return [null];
|
||
|
}
|
||
6 years ago
|
}
|