public final function __construct()
 {
     if (self::isInitialized() !== true) {
         throw new exception('Please initialize first');
     }
     if (self::isConnected() !== true) {
         throw new exception('Please initialize first');
     }
     parent::setAllowChangeInit(false);
     $this->initPart();
 }
Exemplo n.º 2
0
<?php

$rootpath = str_replace('\\', '/', dirname(__FILE__));
require_once $rootpath . '/include/x4core.php';
require_once $rootpath . '/include/x4tension.php';
require_once $rootpath . '/include/x4user.php';
x4core::init();
x4core::connect('mysql', 'localhost', 'test', 'test', 'test');
$user = new x4user();
Exemplo n.º 3
0
 protected static function setAllowChangeInit($allow = false)
 {
     self::$allowChangeInit = $allow;
 }