Ignore:
Timestamp:
11/18/11 15:28:51 (13 years ago)
Author:
fpvanagthoven
Message:
  • Basically alles gefixt om te werken met een local copy van de session, opgeslagen in $_SESSIONlocalSessionCopy?.
  • Flag $_SESSIONupdateNeeded? toegevoegd om aan te geven wanneer er een update uit de database nodig is in plaats van gewoon verder werken met de local copy.
  • '123'/'456' placeholder routine weggehaald uit returnStep.php
  • CreateObject? doet nog niets, maar dat komt volgende week! (AJAX-aangestuurd object creation, met als doel: pipeline editing zonder constante page refreshes).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/returnStep.php

    r157 r163  
    4040function processUid($uid) {
    4141        $dbi = new DatabaseInterface();
    42     if ($uid == "123") {        // test case for when steps aren't actually working
    43         $imageURL = "images/icons/unknowntype.png";
    44         $responsePart = '<div class="displayStep" id="' . "123" . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . "123" . '</div>';
    45         return $responsePart;
    46     } else if ($uid == '456') {
    47         $imageURL = "images/icons/unknowntype.png";
    48         $responsePart = '<div class="displayStep" id="' . "456" . '" onClick="selectStep(this.id);"><div class="displayStepIcon"><img src="' . $imageURL . '" /></div>' . "456" . '</div>';
    49         return $responsePart;
    50     } else {
    51 
    52 
    5342        if ($uid == "divider") {    //a divider has been requested instead of a displaystep
    5443            $responsePart = '<div class="divider"></div>';
     
    6857            }
    6958
    70             if ($result != null) {
     59            if ($result == null) {
    7160                $applications = $dbi->get("Application", array("uid" => $uid));
    7261                if (count($applications) > 0) {
     
    7968            }
    8069
    81             if ($result != null) {
     70            if ($result == null) {
    8271                $dashboards = $dbi->get("Dashboard", array("uid" => $uid));
    8372                if (count($dashboards) > 0) {
     
    116105            }
    117106        }
    118     }
     107   
    119108}
    120109
Note: See TracChangeset for help on using the changeset viewer.