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/NodeGroup.php

    r1436 r1446  
    170170        } 
    171171         
    172         HotspotGraphElement::createNewObject($node_group_id, 'NodeGroup'); 
     172        HotspotGraphElement::createNewObject($node_group_id, 'NodeGroup', $network); 
    173173 
    174174        $object = self::getObject($node_group_id); 
     
    538538    } 
    539539 
    540     /** Add content to this node */ 
    541    /* public function addContent(Content $content) 
    542     { 
    543         $db = AbstractDb::getObject(); 
    544         $content_id = $db->escapeString($content->getId()); 
    545         $sql = "INSERT INTO node_has_content (node_id, content_id) VALUES ('$this->id','$content_id')"; 
    546         $db->execSqlUpdate($sql, false); 
    547         exit; 
    548     }*/ 
    549  
    550     /** Remove content from this node */ 
    551   /*  public function removeContent(Content $content) 
    552     { 
    553         $db = AbstractDb::getObject(); 
    554         $content_id = $db->escapeString($content->getId()); 
    555         $sql = "DELETE FROM node_has_content WHERE node_id='$this->id' AND content_id='$content_id'"; 
    556         $db->execSqlUpdate($sql, false); 
    557     }*/ 
    558  
    559  
    560540    /** Reloads the object from the database.  Should normally be called after a set operation */ 
    561541    protected function refresh()