Show
Ignore:
Timestamp:
04/29/05 14:21:46 (7 years ago)
Author:
fproulx
Message:

2005-04-29 Fran�ois Proulx <francois.proulx@…>

  • Removed all inline unuseful javascript code on submit buttons onclick='submit()'
  • This conflicted with the actual click on the submit button in Safari
  • Fixed check in Network for isOwner, only check superAdmin
  • Fixed bug so you can't add an existing content group to itself ( deadlock )
  • Started coding Pattern language narrative display
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content/PatternLanguage.php

    r588 r601  
    2525 */ 
    2626require_once BASEPATH.'classes/Content/ContentGroup.php'; 
     27require_once BASEPATH.'classes/User.php'; 
    2728 
    2829/** Pattern Language is a location-aware fiction project by Kate Armstrong that attaches patterns of narrative to individuals as they move through the city of Montreal. Each person's path is logged in the system and compiled into a document that can be read online. The work is meant to engage with the rhythms of the city: by evolving according to the patterns of an individual, each story forms both a map or trace of movement and a fabric of sound.  
     
    4445        $this->setIsExpandable(false); 
    4546        } 
     47     
     48    /** Retreives the user interface of this object.  Anything that overrides this method should call the parent method with it's output at the END of processing. 
     49     * @param $subclass_admin_interface Html content of the interface element of a children 
     50     * @return The HTML fragment for this interface */ 
     51      
     52     //TODO: complete this 
     53     /* 
     54    public function getUserUI($subclass_user_interface = null) 
     55    { 
     56        $html = ''; 
     57        $html .= "<div class='user_ui_container'>\n"; 
     58        $html .= "<div class='user_ui_object_class'>PatternLanguage (".get_class($this)." instance)</div>\n"; 
     59         
     60        // Check if the user has already subscribed to Pattern language 
     61        $current_user = User::getCurrentUser(); 
     62        if($current_user == null || $this->isUserSubscribed($current_user) == false) 
     63        { 
     64            // hyperlink to all users narrative 
     65             
     66            // Until subscription is done DO NOT log this ! 
     67            $this->setLoggingStatus(false); 
     68            // Tell the content group not to display elements until subscription is done 
     69            $parent_output = parent :: getUserUI($html, true); 
     70        } 
     71        else 
     72        { 
     73            // The user is subscribed to the pattern language show an element ! 
     74            // hyperlink to user's narrative 
     75             
     76            // Display the random pattern 
     77            $parent_output = parent :: getUserUI($html); 
     78        } 
     79         
     80        $html .= $subclass_user_interface; 
     81        $html .= "</div>\n"; 
     82         
     83        return $parent_output; 
     84    }*/ 
    4685 
    4786        /** Display the narrative