Ejemplo n.º 1
0
 public function __construct($dbh_in = false, $cb = false)
 {
     global $dbh;
     if (!isset(self::$site_path) || !self::$site_path) {
         require_once 'ContentBuilder.class.php';
         self::$site_path = ContentBuilder::getSitePath();
     }
     if ($dbh_in) {
         self::$dbh = $dbh_in;
     } else {
         if (isset($dbh) && $dbh) {
             self::$dbh = $dbh;
         }
     }
     if ($cb) {
         self::$cb = $cb;
     } else {
         require_once 'ContentBuilder.class.php';
         self::$cb = new ContentBuilder();
     }
 }