Menu

Diff of /trunk/python/python-interface.php [r29] .. [r30]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/python/python-interface.php
+++ b/trunk/python/python-interface.php
@@ -41,4 +41,20 @@
 	return 1;
 }
 
-function python_mod($a,$b){return is_integer($a)?$a%$b:$a;}
\ No newline at end of file
+function python_mod($a,$b){return is_integer($a)?$a%$b:$a;}
+
+function python_class_start($a) {
+	$name = $a->name;
+	var_dump($a);	
+}
+
+function python_class_end($a) {
+	$name = $a->name;
+	$classfile = __PHPYTHON_CACHE_PATH__.$name.'.class';
+	$classcode = '<?php
+	class '.$name.' {  
+
+	}';
+	file_put_contents($classfile,$classcode);
+	require_once($classfile);
+}
\ No newline at end of file