Esempio n. 1
0
 public static function __callStatic($m, $options)
 {
     global $clipBoard;
     $type = "";
     $value = "";
     // set type parameter
     if (isset($options[0])) {
         $valArray = explode("_", $options[0]);
         if (isset($valArray[0])) {
             $type = $valArray[0];
         }
         if (isset($valArray[1])) {
             $value = $valArray[1];
         }
         switch ($m) {
             case 'cut':
             case 'copy':
                 OLIVClipboard::set($type, $value);
                 break;
             case '_':
                 OLIVClipboard::set($type, $value);
                 break;
         }
     } elseif (!$clipBoard) {
         return FALSE;
     }
     return $clipBoard['type'] . "_" . $clipBoard['value'];
 }