/vendor/simqel/simqel/src/Simqel/Connection/PDO.php
$this->connect();
if (is_null($value)) {
return 'NULL';
}
elseif ($value == '') {
return "''";
}
elseif ($value{0} != '0' && (is_int($value) || is_float($value))) {
return (string)$value;
}
/vendor/composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/vendor/composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/vendor/composer/ClassLoader.php
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
/vendor/simqel/simqel/src/Simqel/Connection/PDO/MySQL.php
<?php
namespace Simqel;
class Connection_PDO_MySQL extends Connection_PDO
{
public function __construct(Settings $settings)
{
/vendor/composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/vendor/composer/ClassLoader.php
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
/vendor/simqel/simqel/src/Simqel/Simqel.php
* @param $dsn string
* @return SQL
*/
public static function createByDSN($dsn) {
$settings = new Settings($dsn);
switch ($settings->getDriver()) {
case 'mysql':
$connection = new Connection_PDO_MySQL($settings);
$strategy = new Strategy_MySQL($connection);
return new static($connection, $strategy);
/includes/class.sql.php
/**
* @var GSub\Cache\CacheInterface
*/
private $cache;
public function __construct($dsn) {
$simqel = Simqel::createByDSN($dsn);
// decorators
/includes/class.system.php
}
else {
throw new NotFoundException("Module '$modName' in '$modPath' not found!");
}
}
public function dbStart() {
$this->sql = new Sql(getConfig('db'));
}
/includes/class.system.php
if (isset($_GET['print'])){
$this->tpl = new Template('tpl/layout/print.php');
}
else {
$this->tpl = new Template('tpl/index.php');
}
}
$this->dbStart();
$this->sessionStart();
if(isset($_GET['preview'])) $this->set('preview',true);
/index.php
$request = Request::createFromGlobals();
$system->set('request', $request);
// Wyłączenie tłumaczeń
if ($request->query->get('translations') == 'no') {
$system->set('disable_translations', 1);
}
$system->start();
$pages = $system->loadModule('pages');