Show
Ignore:
Timestamp:
02/11/10 17:34:27 (2 years ago)
Author:
gbastien
Message:

* Merged recent changes in the trunk into this branch
* New token architecture not yet fully functional, nor tested, but ...

  • can now edit token templates for different context of tokens (from the edit netork interface at the bottom of page)
  • Users connected through a wifidog gateway can view their connection token information
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newtoken/wifidog/classes/HotspotGraph.php

    r1436 r1446  
    5656{ 
    5757 
     58    /** 
     59     * Adds a relation to the hotspot graph 
     60     * @param parentId the id of the parent 
     61     * @param childId the id of the child 
     62     */ 
     63    public static function addRelation($parentId, $childId) { 
     64        $db = AbstractDb :: getObject(); 
     65        $parentIdStr = $db->escapeString($parentId); 
     66        $childIdStr = $db->escapeString($childId); 
     67        $sql = "INSERT INTO hotspot_graph (child_element_id, parent_element_id) VALUES ('{$childIdStr}', '{$parentIdStr}');"; 
     68        $db->execSqlUpdate($sql, false); 
     69    } 
     70     
    5871    /** 
    5972     * Gets recursively all parents of the given object