+
+ static function lookup($mode)
+ {
+ return (isset(self::$cmodes[$mode])) ? self::$cmodes[$mode] :
+ [
+ 'name' => "Unknown mode",
+ 'description' => "Unknown mode +$mode",
+ 'requires' => 'Unknown'
+ ];
+ }
+ static function setmodes($modes)
+ {
+ $g = [];
+ if (is_array($modes))
+ {
+ self::$uplink = $modes;
+ return;
+ }
+ else if (!strstr($modes,","))
+ $g = [$modes];
+ else $g = split($g,",");
+ self::$uplink = $g;
+ }
+ static $uplink = [];
+
+}