File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -671,4 +671,39 @@ public function hasSpace($name, $size)
671
671
}
672
672
return false ;
673
673
}
674
+
675
+ /**
676
+ * Verifies script validity without storing the script on the server
677
+ *
678
+ * @param string $name The name of the script.
679
+ * @param string $size The size of the script.
680
+ *
681
+ * @return boolean
682
+ */
683
+ public function checkScript ($ content )
684
+ {
685
+ $ content = $ this ->prepareContent ($ content );
686
+ $ return_payload = $ this ->sendCommand ("CHECKSCRIPT " , [$ content ]);
687
+ if ($ return_payload ["code " ] == "OK " ) {
688
+ return true ;
689
+ }
690
+ return false ;
691
+ }
692
+
693
+ /**
694
+ * Used for re-synchronization or to reset any inactivity auto-logout timer on the server.
695
+ *
696
+ * @param string $name The name of the script.
697
+ * @param string $size The size of the script.
698
+ *
699
+ * @return boolean
700
+ */
701
+ public function noop ()
702
+ {
703
+ $ return_payload = $ this ->sendCommand ("NOOP " );
704
+ if ($ return_payload ["code " ] == "OK " ) {
705
+ return true ;
706
+ }
707
+ return false ;
708
+ }
674
709
}
You can’t perform that action at this time.
0 commit comments