35 lines
713 B
PHP
35 lines
713 B
PHP
<?php
|
|
namespace Aiko\Database;
|
|
class query
|
|
{
|
|
private $param;
|
|
private $debug_mode;
|
|
private $registry;
|
|
private $query;
|
|
public function __construct($registry,$query,$debug_mode) {
|
|
$this->debug_mode=$debug_mode;
|
|
$this->query=$query;
|
|
$this->registry=$registry;
|
|
}
|
|
public function getData($param=array())
|
|
{
|
|
try{
|
|
|
|
} catch (PDOException $e)
|
|
{
|
|
if($this->debug_mode)
|
|
{
|
|
return $e->getMessage();
|
|
}else
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
$this->param=$param;
|
|
$obj = new processdata();
|
|
return $obj;
|
|
}
|
|
} |