| | 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 | }*/ |