protected function __construct()
 {
     try {
         // nacteni dat z cache do pameti
         $this->recordTypes = (array) unserialize($this->getCache()->getDataDirect());
         ksort($this->recordTypes);
         LBoxFirePHP::table($this->recordTypes, "data v cachi indexovani URLs vs records types (" . count($this->recordTypes) . ")");
     } catch (Exception $e) {
         throw $e;
     }
 }
Esempio n. 2
0
<?php

DEFINE("XT_GROUP", 1);
require "../../../../lBox/lib/loader.php";
session_start();
LBoxCacheManagerFront::getInstance()->switchListeningOff();
// check xt session
if (!LBoxXTDBFree::isLogged(XT_GROUP) && !LBoxXTProject::isLoggedAdmin(XT_GROUP)) {
    header("HTTP/1.1 404 Not Found");
    die;
}
// firePHP debug
LBoxFirePHP::table($_POST, 'POST data debug');
try {
    //////////////////////////////////////////////////////////////////////
    //	saving data
    //////////////////////////////////////////////////////////////////////
    if (count($_POST) > 1) {
        throw new LBoxException("API awaits array with only one node!");
    }
    if ($_POST) {
        foreach ($_POST as $k => $postData) {
            switch ($k) {
                case "style":
                    $styleString = "";
                    foreach ($postData as $propName => $propValue) {
                        $styleString .= "";
                    }
                    $returned = saveMetanodeStylePropertiesByPostData($postData);
                    break;
                default: