[251] | 1 | <?php |
---|
[259] | 2 | /** |
---|
| 3 | * Needs conf: |
---|
| 4 | * webroot lang_path lang seiten_id languages |
---|
| 5 | * |
---|
| 6 | **/ |
---|
[301] | 7 | |
---|
| 8 | require_once dirname(__FILE__).'/messages.php'; |
---|
[347] | 9 | require_once dirname(__FILE__).'/logging.php'; |
---|
[301] | 10 | |
---|
[254] | 11 | class t29Menu { |
---|
| 12 | public $conf; |
---|
[259] | 13 | public $xml; |
---|
[347] | 14 | public $log; // just for convenience |
---|
[251] | 15 | |
---|
[301] | 16 | // Bevor es eine ordentliche Dev-Moeglichkeit gibt: Der magische |
---|
| 17 | // Schalter zum Ausblenden der Geraeteseiten im Menue |
---|
[569] | 18 | public $hide_geraete_seiten = true; |
---|
[301] | 19 | |
---|
[259] | 20 | // jeweils relativ zum lang_path |
---|
| 21 | const navigation_file = 'navigation.xml'; |
---|
[255] | 22 | const news_file = 'news.php'; |
---|
[254] | 23 | |
---|
[259] | 24 | // xpath queries to the navigation elements |
---|
| 25 | const horizontal_menu = '/html/nav[@class="horizontal"]'; |
---|
| 26 | const sidebar_menu = '/html/nav[@class="side"]'; |
---|
| 27 | |
---|
[254] | 28 | function __construct($conf_array) { |
---|
| 29 | $this->conf = $conf_array; |
---|
[347] | 30 | $this->log = t29Log::get(); // just for convenience |
---|
[275] | 31 | |
---|
[301] | 32 | // create a message object if not given |
---|
| 33 | if(!isset($this->conf['msg'])) |
---|
| 34 | $this->conf['msg'] = new t29Messages($this->conf['lang']); |
---|
| 35 | |
---|
[275] | 36 | // libxml: don't raise errors while parsing. |
---|
| 37 | // will fetch them with libxml_get_errors later. |
---|
| 38 | //libxml_use_internal_errors(true); |
---|
[259] | 39 | |
---|
| 40 | // load xml file |
---|
| 41 | $this->xml = simplexml_load_file($this->conf['webroot'].$this->conf['lang_path'] . '/' . self::navigation_file); |
---|
[275] | 42 | if($this->xml_is_defective()) { |
---|
| 43 | trigger_error("Kann Navigationsdatei nicht verwenden, da das XML nicht sauber ist. Bitte reparieren!"); |
---|
| 44 | } |
---|
[251] | 45 | } |
---|
[259] | 46 | |
---|
[275] | 47 | function xml_is_defective() { |
---|
| 48 | // check if return value of simplexml_load_file was false, |
---|
| 49 | // which means parse error. |
---|
| 50 | return $this->xml === FALSE; |
---|
| 51 | } |
---|
| 52 | |
---|
[259] | 53 | ///////////////////// NEWS EXTRACTION |
---|
[254] | 54 | function load_news_data() { |
---|
[255] | 55 | $newsfile = $this->conf['webroot'].$this->conf['lang_path']."/".self::news_file; |
---|
[254] | 56 | $newsdir = dirname(realpath($newsfile)); |
---|
| 57 | // include path wird ignoriert wenn include relativ ist, was in der |
---|
| 58 | // eingebundenen Datei der Fall ist |
---|
| 59 | // set_include_path( get_include_path(). PATH_SEPARATOR . dirname($newsfile)); |
---|
| 60 | $pwd = getcwd(); chdir($newsdir); |
---|
[255] | 61 | include(self::news_file); |
---|
[254] | 62 | chdir($pwd); |
---|
| 63 | return $neues_menu; |
---|
[251] | 64 | } |
---|
| 65 | |
---|
[348] | 66 | /** |
---|
| 67 | * Liest das YAML-formatierte News-Menue aus der news.php-File der entsprechenden |
---|
| 68 | * Sprache aus und erzeugt daraus ein HTML-Menue, welches als String zurueckgegeben |
---|
| 69 | * wird. |
---|
| 70 | * @param $host Instance of t29Host which can be used for link rewriting if given. |
---|
| 71 | **/ |
---|
| 72 | function convert_news_data($host=null) { |
---|
[569] | 73 | require_once $this->conf['lib'].'/spyc.php'; |
---|
[254] | 74 | $data = Spyc::YAMLLoad($this->load_news_data()); |
---|
[649] | 75 | $fields = array('datum', 'titel',/* 'untertitel', 'bild'*/); |
---|
[251] | 76 | |
---|
[254] | 77 | $news_ul_content = ''; |
---|
| 78 | foreach($data as $e) { |
---|
| 79 | if(!array_reduce(array_map(function($x) use ($fields,$e){ return isset($e[$x]); }, $fields), |
---|
| 80 | function($a,$b){ return $a && $b;}, true)) { |
---|
[347] | 81 | $li = "<li><a href='#'>Fehler in Formatierung!<em>Dieser Menüeintrag ist falsch formatiert</em></a></li>"; |
---|
[649] | 82 | $this->log->WARN("<h5>Neuigkeiten-Menü: Fehler in Formatierung</h5><p>Ein Eintrag im Neuigkeiten-Menü ist falsch formatiert. Ich erwarte zu jedem Menüeintrag die Felder ".implode(", ", $fields).". Eine der Angaben fehlt oder ist fehlerhaft formatiert: <pre>".var_export($e, true)."</pre>"); |
---|
[254] | 83 | } else { |
---|
[649] | 84 | // Ehemals konnte die URL per "link: #August_2013" angegeben werden oder "link: /de/irgendwohin". |
---|
| 85 | // $url = ($e['link']{0} == '#' ? $this->conf['lang_path'].'/'.self::news_file : '').$e['link']; |
---|
| 86 | // Jetzt wird die URL automatisch aus dem Datum gebaut (slugify-artig) |
---|
| 87 | $url = $this->conf['lang_path'].'/'.self::news_file.'#'.str_replace(' ', '_', $e['datum']); |
---|
[348] | 88 | if($host) |
---|
| 89 | $url = $host->rewrite_link($url); |
---|
[649] | 90 | |
---|
| 91 | // optionales Feld: Untertitel |
---|
| 92 | if(!isset($e['untertitel'])) $e['untertitel'] = ''; |
---|
| 93 | |
---|
| 94 | // weiteres optionales Feld: Bildeinbindung |
---|
| 95 | $img = !isset($e['bild']) ? '' : "<img src='$e[bild]' style='max-width:64px; max-height:64px;'>"; |
---|
| 96 | $li = "<li><a href='$url'>$img$e[titel]<span class='hidden'>: </span><em>$e[untertitel]</em></a></li>"; |
---|
[254] | 97 | } |
---|
| 98 | $news_ul_content .= "\t".$li."\n"; |
---|
| 99 | } |
---|
[251] | 100 | |
---|
[254] | 101 | return $news_ul_content; |
---|
| 102 | } |
---|
[259] | 103 | |
---|
| 104 | ///////////////////// RETURN INFOS ABOUT SEITEN_ID LINK |
---|
[279] | 105 | |
---|
| 106 | /** |
---|
| 107 | * Find the corresponding XML node in the navigation tree for the link |
---|
| 108 | * with given $seiten_id or the current given seiten_id in the configuration |
---|
| 109 | * array. |
---|
| 110 | * This method is used in get_link_navigation_class, etc. for resolving |
---|
| 111 | * the XML element from the string. They can be used with the XML node, too, |
---|
| 112 | * and this behaviour is passed throught by this method, so if you call |
---|
| 113 | * this with an SimpleXMLElement as argument, it behaves like an identity |
---|
| 114 | * function and just does nothing. |
---|
| 115 | * (This is used in template.php for caching the found xml element and saving |
---|
| 116 | * several xpath querys on get_* calls) |
---|
| 117 | * |
---|
| 118 | * @param $seiten_id Either a string, or nothing (defaults to conf) or SimpleXMLElement |
---|
| 119 | * @returns SimpleXMLElement or null if link not found |
---|
| 120 | **/ |
---|
| 121 | function get_link($seiten_id=false) { |
---|
[275] | 122 | if($this->xml_is_defective()) { |
---|
| 123 | return null; |
---|
| 124 | } |
---|
[350] | 125 | if(!$seiten_id) $seiten_id = $this->conf['seiten_id']; |
---|
[279] | 126 | // convenience: If you found your link already. |
---|
| 127 | if($seiten_id instanceof SimpleXMLElement) return $seiten_id; |
---|
[254] | 128 | |
---|
[259] | 129 | $matches = $this->xml->xpath("//a[@seiten_id='$seiten_id']"); |
---|
| 130 | if($matches && count($matches)) { |
---|
| 131 | // strip the first one |
---|
| 132 | return $matches[0]; |
---|
| 133 | } |
---|
[279] | 134 | return null; |
---|
[259] | 135 | } |
---|
[279] | 136 | |
---|
| 137 | /** |
---|
| 138 | * Get navigation list membership (horizontal or side) of a link |
---|
| 139 | * @see get_link for parameters |
---|
| 140 | * @returns String of <nav> class where this link is affiliated to |
---|
| 141 | **/ |
---|
| 142 | function get_link_navigation_class($seiten_id=false) { |
---|
| 143 | $link = $this->get_link($seiten_id); |
---|
| 144 | if(!$link) return null; |
---|
| 145 | |
---|
| 146 | // navigation list membership |
---|
| 147 | $nav = $link->xpath("ancestor::nav"); |
---|
| 148 | return strval($nav[0]['class']); // cast SimpleXMLElement |
---|
| 149 | } |
---|
[259] | 150 | |
---|
[279] | 151 | /** |
---|
| 152 | * Get list of parental ul classes (u2, u3, geraete, ...) |
---|
| 153 | * @see get_link for parameters |
---|
| 154 | * @returns array with individual class names as strings |
---|
| 155 | **/ |
---|
| 156 | function get_link_ul_classes($seiten_id=false) { |
---|
| 157 | $link = $this->get_link($seiten_id); |
---|
| 158 | if(!$link) return array(); |
---|
| 159 | |
---|
| 160 | // direct parental ul classes |
---|
| 161 | $ul = $link->xpath("ancestor::ul"); |
---|
| 162 | $parent_ul = array_pop($ul); |
---|
| 163 | return explode(' ',$parent_ul['class']); |
---|
| 164 | } |
---|
[350] | 165 | |
---|
| 166 | /** |
---|
| 167 | * Extracts a list of (CSS) classes the link has, |
---|
| 168 | * e.g. <a class="foo bar"> gives array("foo","basr"). |
---|
[390] | 169 | * |
---|
| 170 | * Caveat: This must be called before this class is destructed |
---|
| 171 | * by print_menu! Otherwise it will return an empty array. This is |
---|
| 172 | * actually bad design, print_menu destroyes the internal structure |
---|
| 173 | * for storage efficiencey. |
---|
| 174 | * |
---|
[350] | 175 | * @returns array or empty array in case of error |
---|
| 176 | **/ |
---|
| 177 | function get_link_classes($seiten_id=false) { |
---|
| 178 | $link = $this->get_link($seiten_id); |
---|
[390] | 179 | //print "link:"; var_dump($this->xml); |
---|
[350] | 180 | if(!$link) return array(); |
---|
[390] | 181 | //var_dump($link); exit; |
---|
[350] | 182 | return isset($link['class']) ? explode(' ',$link['class']) : array(); |
---|
| 183 | } |
---|
[279] | 184 | |
---|
[259] | 185 | ///////////////////// INTER LANGUAGE DETECTION |
---|
| 186 | /** |
---|
| 187 | * @param seiten_id Get interlanguage link for that seiten_id or default. |
---|
| 188 | **/ |
---|
| 189 | function get_interlanguage_link($seiten_id=false) { |
---|
| 190 | if(!$seiten_id) $seiten_id = $this->conf['seiten_id']; |
---|
| 191 | |
---|
| 192 | $interlinks = array(); // using a loop instead of mappings since php is stupid |
---|
| 193 | foreach($this->conf['languages'] as $lang => $lconf) { |
---|
| 194 | $foreign_menu = new t29Menu(array( |
---|
| 195 | 'webroot' => $this->conf['webroot'], |
---|
| 196 | 'seiten_id' => $this->conf['seiten_id'], |
---|
| 197 | 'languages' => $this->conf['languages'], |
---|
| 198 | 'lang' => $lang, |
---|
| 199 | 'lang_path' => $lconf[1], |
---|
| 200 | )); |
---|
| 201 | |
---|
[279] | 202 | $link = $foreign_menu->get_link($seiten_id); |
---|
[259] | 203 | $interlinks[$lang] = $link; |
---|
| 204 | } |
---|
| 205 | |
---|
| 206 | return $interlinks; |
---|
| 207 | } |
---|
| 208 | |
---|
[289] | 209 | // helper methods |
---|
| 210 | |
---|
| 211 | /** Check if a simplexml element has an attribute. Lightweight operation |
---|
| 212 | * over the DOM. |
---|
| 213 | * @returns boolean |
---|
| 214 | **/ |
---|
| 215 | public static function dom_has_attribute($simplexml_element, $attribute_name) { |
---|
[259] | 216 | $dom = dom_import_simplexml($simplexml_element); // is a fast operation |
---|
[289] | 217 | return $dom->hasAttribute($attribute_name); |
---|
[254] | 218 | } |
---|
[259] | 219 | |
---|
[289] | 220 | public static function dom_prepend_attribute($simplexml_element, $attribute_name, $content, $seperator='') { |
---|
| 221 | if(!is_array($simplexml_element)) $simplexml_element = array($simplexml_element); |
---|
| 222 | foreach($simplexml_element as $e) |
---|
| 223 | $e[$attribute_name] = $content . (self::dom_has_attribute($e, $attribute_name) ? ($seperator.$e[$attribute_name]) : ''); |
---|
| 224 | } |
---|
| 225 | |
---|
| 226 | public static function dom_append_attribute($simplexml_element, $attribute_name, $content, $seperator='') { |
---|
| 227 | if(!is_array($simplexml_element)) $simplexml_element = array($simplexml_element); |
---|
| 228 | foreach($simplexml_element as $e) |
---|
| 229 | $e[$attribute_name] = (self::dom_has_attribute($e, $attribute_name) ? ($e[$attribute_name].$seperator) : '') . $content; |
---|
| 230 | } |
---|
| 231 | |
---|
| 232 | /** |
---|
| 233 | * Appends a (CSS) class to a simplexml element, seperated by whitespace. Just an alias. |
---|
| 234 | **/ |
---|
| 235 | public static function dom_add_class($simplexml_element, $value) { |
---|
| 236 | self::dom_append_attribute($simplexml_element, 'class', $value, ' '); |
---|
| 237 | } |
---|
| 238 | |
---|
[259] | 239 | public static function dom_new_link($href, $label) { |
---|
| 240 | return new SimpleXMLElement(sprintf('<a href="%s">%s</a>', $href, $label)); |
---|
| 241 | } |
---|
[254] | 242 | |
---|
[278] | 243 | |
---|
[259] | 244 | ///////////////////// MENU ACTIVE LINK DETECTION |
---|
| 245 | /** |
---|
[350] | 246 | * print_menu is the central method in this class. It converts the $this->xml |
---|
| 247 | * XML tree to valid HTML with all enrichments for appropriate CSS styling. |
---|
| 248 | * It also removes all 'seiten_id' attributes. |
---|
| 249 | * This method does *not* clone the structure, so this instance won't produce |
---|
| 250 | * the same results any more after print_menu invocation! This especially will |
---|
| 251 | * affect get_link(). |
---|
| 252 | * |
---|
[259] | 253 | * @arg $xpath_menu_selection one of the horizontal_menu / sidebar_menu consts. |
---|
[347] | 254 | * @arg $host Instance of t29Host which can be used for link rewriting if given. |
---|
[350] | 255 | * @returns nothing, since the output is printed out |
---|
[259] | 256 | **/ |
---|
[347] | 257 | function print_menu($xpath_menu_selection, $host=null) { |
---|
[275] | 258 | if($this->xml_is_defective()) { |
---|
| 259 | print "The Menu file is broken."; |
---|
| 260 | return false; |
---|
| 261 | } |
---|
[254] | 262 | $seiten_id = $this->conf['seiten_id']; |
---|
[301] | 263 | $_ = $this->conf['msg']->get_shorthand_returner(); |
---|
| 264 | |
---|
[259] | 265 | // find wanted menu |
---|
| 266 | $xml = $this->xml->xpath($xpath_menu_selection); |
---|
| 267 | if(!$xml) { |
---|
| 268 | print "Menu <i>$xpath_menu_selection</i> not found!"; |
---|
| 269 | return false; |
---|
| 270 | } |
---|
| 271 | $xml = $xml[0]; // just take the first result (should only one result be present) |
---|
[350] | 272 | |
---|
| 273 | /* |
---|
| 274 | // work on a deep copy of the data. Thus this method won't make the overall |
---|
| 275 | // class useless. |
---|
| 276 | $dom = dom_import_simplexml($xml); |
---|
| 277 | $xml = simplexml_import_dom($dom->cloneNode(true)); |
---|
| 278 | */ |
---|
[259] | 279 | |
---|
[254] | 280 | // aktuelle Seite anmarkern und Hierarchie hochgehen |
---|
| 281 | // (<ul><li>bla<ul><li>bla<ul><li>hierbin ich <- hochgehen.) |
---|
| 282 | $current_a = $xml->xpath("//a[@seiten_id='$seiten_id']"); |
---|
| 283 | if(count($current_a)) { |
---|
| 284 | $current_li = $current_a[0]->xpath("parent::li"); |
---|
[289] | 285 | self::dom_add_class($current_li[0], 'current'); |
---|
[301] | 286 | self::dom_prepend_attribute($current_a, 'title', $_('nav-hierarchy-current'), ': '); |
---|
[289] | 287 | |
---|
| 288 | $actives = $current_li[0]->xpath("ancestor-or-self::li"); |
---|
| 289 | array_walk($actives, function($i) { t29Menu::dom_add_class($i, 'active'); }); |
---|
| 290 | |
---|
| 291 | $ancestors = $current_li[0]->xpath("ancestor::li"); |
---|
[301] | 292 | foreach($ancestors as $i) |
---|
| 293 | t29Menu::dom_prepend_attribute($i->xpath("./a[1]"), 'title', $_('nav-hierarchy-ancestor'), ': '); |
---|
[254] | 294 | } |
---|
| 295 | |
---|
| 296 | // Seiten-IDs (ungueltiges HTML) ummoddeln |
---|
| 297 | $all_ids = $xml->xpath("//a[@seiten_id]"); |
---|
| 298 | foreach($all_ids as $a) { |
---|
| 299 | $a['id'] = "sidebar_link_".$a['seiten_id']; |
---|
| 300 | // umweg ueber DOM um Node zu loeschen |
---|
| 301 | $adom = dom_import_simplexml($a); |
---|
| 302 | $adom->removeAttribute('seiten_id'); |
---|
| 303 | } |
---|
[278] | 304 | |
---|
| 305 | // Geraete-Seiten entfernen |
---|
[569] | 306 | if($this->hide_geraete_seiten) { |
---|
[301] | 307 | $geraete_uls = $xml->xpath("//ul[contains(@class, 'geraete')]"); |
---|
| 308 | foreach($geraete_uls as $ul) { |
---|
| 309 | $uld = dom_import_simplexml($ul); |
---|
| 310 | $uld->parentNode->removeChild($uld); |
---|
| 311 | } |
---|
[278] | 312 | } |
---|
[347] | 313 | |
---|
| 314 | // alle Links mittels t29Host umwandeln (idR .php-Endung entfernen), |
---|
| 315 | // falls erwuenscht |
---|
| 316 | if($host) { |
---|
| 317 | $links = $xml->xpath("//a[@href]"); |
---|
| 318 | foreach($links as $a) |
---|
| 319 | $a['href'] = $host->rewrite_link($a['href']); |
---|
| 320 | } |
---|
[254] | 321 | |
---|
[259] | 322 | if($xpath_menu_selection == self::horizontal_menu) { |
---|
[254] | 323 | # inject news |
---|
[348] | 324 | $news_ul_content = $this->convert_news_data($host); |
---|
[254] | 325 | $magic_comment = '<!--# INSERT_NEWS #-->'; |
---|
| 326 | $menu = $xml->ul->asXML(); |
---|
| 327 | print str_replace($magic_comment, $news_ul_content, $menu); |
---|
| 328 | } else { |
---|
| 329 | print $xml->ul->asXML(); |
---|
| 330 | } |
---|
[251] | 331 | } |
---|
| 332 | |
---|
[259] | 333 | ///////////////////// PAGE RELATIONS |
---|
| 334 | /** |
---|
| 335 | * Usage: |
---|
| 336 | * foreach(get_page_relations() as $a) { |
---|
| 337 | * echo "Link $a going to $a[href]"; |
---|
| 338 | * } |
---|
[299] | 339 | * |
---|
| 340 | * Hinweis: |
---|
| 341 | * Wenn Element (etwa prev) nicht existent, nicht null zurueckgeben, |
---|
| 342 | * sondern Element gar nicht zurueckgeben (aus hash loeschen). |
---|
| 343 | * |
---|
[259] | 344 | * @param $seiten_id A seiten_id string or nothing for taking the current active string |
---|
| 345 | * @returns an array(prev=>..., next=>...) or empty array, elements are SimpleXML a links |
---|
| 346 | **/ |
---|
| 347 | function get_page_relations($seiten_id=false) { |
---|
[275] | 348 | if($this->xml_is_defective()) |
---|
| 349 | return array(); // cannot construct relations due to bad XML file |
---|
[259] | 350 | if(!$seiten_id) $seiten_id = $this->conf['seiten_id']; |
---|
| 351 | |
---|
| 352 | $xml = $this->xml->xpath(self::sidebar_menu); |
---|
| 353 | if(!$xml) { print "<i>Sidebar not found</i>"; return; } |
---|
| 354 | $sidebar = $xml[0]; |
---|
| 355 | |
---|
| 356 | $return = array(); |
---|
[254] | 357 | $current_a = $sidebar->xpath("//a[@seiten_id='$seiten_id']"); |
---|
| 358 | if(count($current_a)) { |
---|
[299] | 359 | // wenn aktuelle seite eine geraeteseite ist |
---|
| 360 | if(in_array('geraete', $this->get_link_ul_classes($seiten_id))) { |
---|
[301] | 361 | // pfad: a ->li->ul.geraete->li->li/a |
---|
| 362 | $geraetelink = $current_a[0]->xpath("../../../a"); |
---|
| 363 | if(count($geraetelink)) |
---|
| 364 | $return['prev'] = $geraetelink[0]; |
---|
| 365 | $return['next'] = null; // kein Link nach vorne |
---|
[299] | 366 | } else { |
---|
| 367 | foreach(array( |
---|
| 368 | "prev" => "preceding::a[@seiten_id]", |
---|
| 369 | "next" => "following::a[@seiten_id]") as $rel => $xpath) { |
---|
| 370 | $nodes = $current_a[0]->xpath($xpath); |
---|
| 371 | foreach($rel == "prev" ? array_reverse($nodes) : $nodes as $link) { |
---|
| 372 | $is_geraete = count($link->xpath("ancestor::ul[contains(@class, 'geraete')]")); |
---|
| 373 | if($is_geraete) continue; // skip geraete links |
---|
| 374 | $return[$rel] = $link; |
---|
| 375 | break; // just take the first matching element |
---|
| 376 | } |
---|
| 377 | } // end for prev next |
---|
| 378 | } // end if geraete |
---|
[254] | 379 | } else { |
---|
[259] | 380 | // TODO PENDING: Der Fall tritt derzeit niemals ein, da das XML |
---|
| 381 | // sich dann doch irgendwie auf alles bezieht ($sidebar = alles) und |
---|
| 382 | // ueberall gesucht wird. Ist aber okay. oder? |
---|
| 383 | $return['start'] = t29Menu::dom_new_link('#', 'bla'); |
---|
[254] | 384 | } |
---|
[301] | 385 | |
---|
| 386 | // Linkliste aufarbeiten: Nullen rausschmeissen (nur deko) und |
---|
| 387 | // Links *klonen*, denn sie werden durch print_menu sonst veraendert |
---|
| 388 | // ("Übergeordnete Kategorie der aktuellen Seite" steht dann drin) |
---|
| 389 | // und wir wollen sie unveraendert haben. |
---|
| 390 | foreach($return as $key => $node) { |
---|
| 391 | if(!$node) { |
---|
| 392 | unset($return[$key]); |
---|
| 393 | continue; |
---|
| 394 | } |
---|
| 395 | $dn = dom_import_simplexml($node); |
---|
| 396 | $dnc = simplexml_import_dom($dn->cloneNode(true)); |
---|
| 397 | $return[$key] = $dnc; |
---|
| 398 | } |
---|
| 399 | |
---|
[259] | 400 | return $return; |
---|
[254] | 401 | } |
---|
[251] | 402 | |
---|
[649] | 403 | } // class |
---|