-
Notifications
You must be signed in to change notification settings - Fork 0
/
Yaf.php
998 lines (998 loc) · 21.4 KB
/
Yaf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
<?php
define("YAF_VERSION", "2.2.9");
define("YAF_ENVIRON", "product");
define("YAF_ERR_STARTUP_FAILED", 512);
define("YAF_ERR_ROUTE_FAILED", 513);
define("YAF_ERR_DISPATCH_FAILED", 514);
define("YAF_ERR_AUTOLOAD_FAILED", 520);
define("YAF_ERR_NOTFOUND_MODULE", 515);
define("YAF_ERR_NOTFOUND_CONTROLLER", 516);
define("YAF_ERR_NOTFOUND_ACTION", 517);
define("YAF_ERR_NOTFOUND_VIEW", 518);
define("YAF_ERR_CALL_FAILED", 519);
define("YAF_ERR_TYPE_ERROR", 521);
abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract {
protected $_controller;
/**
* @param mixed $arg
* @return mixed
*/
abstract public function execute($arg, $__args = null);
/**
* @return Yaf_Controller_Abstract
*/
public function getController();
}
final class Yaf_Application {
protected $config;
protected $dispatcher;
protected static $_app;
protected $_modules;
protected $_running;
protected $_environ;
/**
* @return Yaf_Application
*/
public static function app();
/**
* @param Yaf_Bootstrap_Abstract $bootstrap
* @return Yaf_Application
*/
public function bootstrap(Yaf_Bootstrap_Abstract $bootstrap = null);
/**
* @return Yaf_Application
*/
public function clearLastError();
private function __clone();
/**
* @param mixed $config
* @param string $envrion
*/
function __construct($config, $envrion = null);
public function __destruct();
/**
* @return string
*/
public function environ();
/**
* @param callable $entry
*/
public function execute(callable $entry, $__args = null);
/**
* @return string
*/
public function getAppDirectory();
/**
* @return Yaf_Config_Abstract
*/
public function getConfig();
/**
* @return Yaf_Dispatcher
*/
public function getDispatcher();
/**
* @return string
*/
public function getLastErrorMsg();
/**
* @return int
*/
public function getLastErrorNo();
/**
* @return array
*/
public function getModules();
/**
* @return Yaf_Response_Http
*/
public function run();
/**
* @param string $directory
* @return Yaf_Application
*/
public function setAppDirectory($directory);
private function __sleep();
private function __wakeup();
}
abstract class Yaf_Bootstrap_Abstract {
}
abstract class Yaf_Config_Abstract {
protected $_config;
protected $_readonly;
/**
* @param string $name
* @param mixed $value
* @return mixed
*/
abstract public function get($name, $value);
/**
* @return bool
*/
abstract public function readonly();
/**
* @return Yaf_Config_Abstract
*/
abstract public function set();
/**
* @return array
*/
abstract public function toArray();
}
class Yaf_Config_Ini extends Yaf_Config_Abstract implements Iterator , ArrayAccess , Countable {
/**
* @param string $config_file
* @param string $section
*/
function __construct ($config_file, $section = null);
public function count ();
public function current ();
/**
* @param string $name
*/
public function __get ($name = null);
/**
* @param string $name
*/
public function __isset ($name);
public function key ();
public function next ();
/**
* @param string $name
*/
public function offsetExists ($name);
/**
* @param string $name
*/
public function offsetGet ($name);
/**
* @param string $name
* @param string $value
*/
public function offsetSet ($name, $value);
/**
* @param string $name
*/
public function offsetUnset ($name);
public function readonly ();
public function rewind ();
/**
* @param string $name
* @param mixed $value
*/
public function __set ($name, $value);
/**
* @return array
*/
public function toArray ();
public function valid ();
public function get($name, $value);
public function set();
}
class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, ArrayAccess, Countable {
protected $_readonly;
/**
* @param string $config_file
* @param string $section
*/
function __construct($config_file, $section = null);
public function count();
public function current();
/**
* @param string $name
*/
public function __get($name = null);
/**
* @param string $name
*/
public function __isset($name);
public function key();
public function next();
/**
* @param string $name
*/
public function offsetExists($name);
/**
* @param string $name
*/
public function offsetGet($name);
/**
* @param string $name
* @param string $value
*/
public function offsetSet($name, $value);
/**
* @param string $name
*/
public function offsetUnset($name);
public function readonly();
public function rewind();
/**
* @param string $name
* @param string $value
*/
public function __set($name, $value);
/**
* @return array
*/
public function toArray();
public function valid();
public function get($name, $value);
public function set();
}
class Yaf_Controller_Abstract {
public $actions;
protected $_module;
protected $_name;
protected $_request;
protected $_response;
protected $_invoke_args;
protected $_view;
final private function __clone();
final private function __construct();
/**
* @param string $tpl
* @param array $parameters
* @return bool
*/
protected function display($tpl, array $parameters = null);
/**
* @param string $module
* @param string|array $controller
* @param string|array $action
* @param array $paramters
*/
public function forward($module, $controller = null, $action = null, array $paramters = null);
/**
* @param string $name
* @return string
*/
public function getInvokeArg($name);
/**
* @return array
*/
public function getInvokeArgs();
/**
* @return string
*/
public function getModuleName();
/**
* @return Yaf_Request_Http Yaf_Request_Abstract
*/
public function getRequest();
/**
* @return Yaf_Response_Abstract
*/
public function getResponse();
/**
* @return Yaf_View_Interface
*/
public function getView();
/**
* @return string
*/
public function getViewpath();
public function init();
/**
* @param array $options
*/
public function initView(array $options = null);
/**
* @param string $url
* @return bool
*/
public function redirect($url);
/**
* @param string $tpl
* @param array $parameters
* @return string
*/
protected function render($tpl, array $parameters = null);
/**
* @param string $view_directory
*/
public function setViewpath($view_directory);
}
final class Yaf_Dispatcher {
protected $_router;
protected $_view;
protected $_request;
protected $_plugins;
protected static $_instance;
protected $_auto_render;
protected $_return_response;
protected $_instantly_flush;
protected $_default_module;
protected $_default_controller;
protected $_default_action;
/**
* @param bool $flag
* @return Yaf_Dispatcher
*/
public function autoRender($flag = null);
/**
* @param bool $flag
* @return Yaf_Dispatcher
*/
public function catchException($flag = false);
private function __clone();
function __construct();
/**
* @return Yaf_Dispatcher
*/
public function disableView();
/**
* @param Yaf_Request_Abstract $request
* @return Yaf_Response_Abstract
*/
public function dispatch(Yaf_Request_Abstract $request);
/**
* @return Yaf_Dispatcher
*/
public function enableView();
/**
* @param bool $flag
* @return Yaf_Dispatcher
*/
public function flushInstantly($flag = null);
/**
* @return Yaf_Application
*/
public function getApplication();
/**
* @return Yaf_Dispatcher
*/
public static function getInstance();
/**
* @return Yaf_Request_Abstract
*/
public function getRequest();
/**
* @return Yaf_Router
*/
public function getRouter();
/**
* @param string $templates_dir
* @param array $options
* @return Yaf_View_Interface
*/
public function initView($templates_dir, array $options = null);
/**
* @param Yaf_Plugin_Abstract $plugin
* @return Yaf_Dispatcher
*/
public function registerPlugin(Yaf_Plugin_Abstract $plugin);
/**
* @param bool $flag
* @return Yaf_Dispatcher
*/
public function returnResponse($flag);
/**
* @param string $action
* @return Yaf_Dispatcher
*/
public function setDefaultAction($action);
/**
* @param string $controller
* @return Yaf_Dispatcher
*/
public function setDefaultController($controller);
/**
* @param string $module
* @return Yaf_Dispatcher
*/
public function setDefaultModule($module);
/**
* @param call $callback
* @param int $error_types
* @return Yaf_Dispatcher
*/
public function setErrorHandler(callable $callback, $error_types);
/**
* @param Yaf_Request_Abstract $request
* @return Yaf_Dispatcher
*/
public function setRequest(Yaf_Request_Abstract $request);
/**
* @param Yaf_View_Interface $view
* @return Yaf_Dispatcher
*/
public function setView(Yaf_View_Interface $view);
private function __sleep();
/**
* @param bool $flag
* @return Yaf_Dispatcher
*/
public function throwException($flag = false);
private function __wakeup();
}
class Yaf_Exception extends Exception {
protected $message;
protected $code;
protected $file;
protected $line;
function __construct();
public function getPrevious();
}
class Yaf_Exception_DispatchFailed extends Yaf_Exception {
}
class Yaf_Exception_LoadFailed extends Yaf_Exception {
}
class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed {
}
class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed {
}
class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed {
}
class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed {
}
class Yaf_Exception_RouterFailed extends Yaf_Exception {
}
class Yaf_Exception_StartupError extends Yaf_Exception {
}
class Yaf_Exception_TypeError extends Yaf_Exception {
}
class Yaf_Loader {
protected $_local_ns;
protected $_library;
protected $_global_library;
static $_instance;
/**
* @param string $class_name
* @return bool
*/
public function autoload($class_name);
/**
* @return bool
*/
public function clearLocalNamespace();
private function __clone();
function __construct();
/**
* @return Yaf_Loader
*/
public static function getInstance();
/**
* @param bool $is_global
* @return Yaf_Loader
*/
public function getLibraryPath($is_global = null);
/**
* @return array
*/
public function getLocalNamespace();
/**
* @return bool
*/
public static function import();
/**
* @param string $class_name
* @return bool
*/
public function isLocalName($class_name);
/**
* @param mixed $prefix
* @return Yaf_Loader
*/
public function registerLocalNamespace($prefix);
/**
* @param string $directory
* @param bool $is_global
* @return Yaf_Loader
*/
public function setLibraryPath($directory, $is_global = null);
private function __sleep();
private function __wakeup();
}
class Yaf_Plugin_Abstract {
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function dispatchLoopShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function dispatchLoopStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function preDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function preResponse(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
/**
* @param Yaf_Request_Abstract $request
* @param Yaf_Response_Abstract $response
*/
public function routerStartup(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response);
}
class Yaf_Registry {
static $_instance;
protected $_entries;
private function __clone();
function __construct();
/**
* @param string $name
*/
public static function del($name);
/**
* @param string $name
* @return mixed
*/
public static function get($name);
/**
* @param string $name
* @return bool
*/
public static function has($name);
/**
* @param string $name
* @param string $value
* @return bool
*/
public static function set($name, $value);
}
class Yaf_Request_Abstract {
const SCHEME_HTTP = http;
const SCHEME_HTTPS = https;
public $module;
public $controller;
public $action;
public $method;
protected $params;
protected $language;
protected $_exception;
protected $_base_uri;
protected $uri;
protected $dispatched;
protected $routed;
public function getActionName();
public function getBaseUri();
public function getControllerName();
/**
* @param string $name
* @param string $default
*/
public function getEnv($name, $default = null);
public function getException();
public function getLanguage();
public function getMethod();
public function getModuleName();
/**
* @param string $name
* @param string $default
*/
public function getParam($name, $default = null);
public function getParams();
public function getRequestUri();
/**
* @param string $name
* @param string $default
*/
public function getServer($name, $default = null);
public function isCli();
public function isDispatched();
public function isGet();
public function isHead();
public function isOptions();
public function isPost();
public function isPut();
public function isRouted();
public function isXmlHttpRequest();
/**
* @param string $action
*/
public function setActionName($action);
/**
* @param string $uir
* @return bool
*/
public function setBaseUri($uir);
/**
* @param string $controller
*/
public function setControllerName($controller);
public function setDispatched();
/**
* @param string $module
*/
public function setModuleName($module);
/**
* @param string $name
* @param string $value
*/
public function setParam($name, $value = null);
/**
* @param string $uir
*/
public function setRequestUri($uir);
/**
* @param string $flag
*/
public function setRouted($flag = null);
}
class Yaf_Request_Http extends Yaf_Request_Abstract {
private function __clone();
function __construct();
/**
* @param string $name
* @param string $default
* @return mixed
*/
public function get($name, $default = null);
/**
* @param string $name
* @param string $default
* @return mixed
*/
public function getCookie($name, $default = null);
public function getFiles();
/**
* @param string $name
* @param string $default
* @return mixed
*/
public function getPost($name, $default = null);
/**
* @param string $name
* @param string $default
* @return mixed
*/
public function getQuery($name, $default = null);
public function getRequest();
/**
* @return bool
*/
public function isXmlHttpRequest();
}
class Yaf_Request_Simple extends Yaf_Request_Abstract {
const SCHEME_HTTP = http;
const SCHEME_HTTPS = https;
private function __clone();
function __construct();
public function get();
public function getCookie();
public function getFiles();
public function getPost();
public function getQuery();
public function getRequest();
public function isXmlHttpRequest();
}
class Yaf_Response_Abstract {
const DEFAULT_BODY = "content";
protected $_header;
protected $_body;
protected $_sendheader;
/**
* @param string $content
* @param string $key
* @return bool
*/
public function appendBody($content, $key = null);
/**
* @param string $key
* @return bool
*/
public function clearBody($key = null);
public function clearHeaders();
private function __clone();
function __construct();
public function __destruct();
/**
* @param string $key
* @return mixed
*/
public function getBody($key = null);
public function getHeader();
/**
* @param string $content
* @param string $key
* @return bool
*/
public function prependBody($content, $key = null);
public function response();
protected function setAllHeaders();
/**
* @param string $content
* @param string $key
* @return bool
*/
public function setBody($content, $key = null);
public function setHeader();
public function setRedirect($url);
private function __toString();
}
interface Yaf_Route_Interface {
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
abstract public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Map implements Yaf_Route_Interface {
protected $_ctl_router;
protected $_delimeter;
/**
* @param string $controller_prefer
* @param string $delimiter
*/
function __construct($controller_prefer = false, $delimiter = '_');
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Regex implements Yaf_Route_Interface {
protected $_route;
protected $_default;
protected $_maps;
protected $_verify;
/**
* @param string $match
* @param array $route
* @param array $map
* @param array $verify
*/
function __construct($match, array $route, array $map, array $verify = null);
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Rewrite implements Yaf_Route_Interface {
protected $_route;
protected $_default;
protected $_verify;
/**
* @param string $match
* @param array $route
* @param array $verify
*/
function __construct($match, array $route, array $verify = null);
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Simple implements Yaf_Route_Interface {
protected $controller;
protected $module;
protected $action;
/**
* @param string $module_name
* @param string $controller_name
* @param string $action_name
*/
function __construct($module_name, $controller_name, $action_name);
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Static implements Yaf_Route_Interface {
/**
* @param string $uri
*/
public function match($uri);
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Route_Supervar implements Yaf_Route_Interface {
protected $_var_name;
/**
* @param string $supervar_name
*/
function __construct($supervar_name);
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Router {
protected $_routes;
protected $_current;
/**
* @param Yaf_Config_Abstract $config
* @return bool
*/
public function addConfig(Yaf_Config_Abstract $config);
/**
* @param string $name
* @param Yaf_Route_Abstract $route
* @return bool
*/
public function addRoute($name, Yaf_Route_Interface $route);
function __construct();
/**
* @return string
*/
public function getCurrentRoute();
/**
* @param string $name
* @return Yaf_Route_Interface
*/
public function getRoute($name);
/**
* @return mixed
*/
public function getRoutes();
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route(Yaf_Request_Abstract $request);
}
class Yaf_Session implements Iterator, ArrayAccess, Countable {
protected static $_instance;
protected $_session;
protected $_started;
private function __clone();
function __construct();
public function count();
public function current();
/**
* @param string $name
*/
public function del($name);
/**
* @param string $name
*/
public function __get($name);
public static function getInstance();
/**
* @param string $name
*/
public function has($name);
/**
* @param string $name
*/
public function __isset($name);
public function key();
public function next();
/**
* @param string $name
*/
public function offsetExists($name);
/**
* @param string $name
*/
public function offsetGet($name);
/**
* @param string $name
* @param string $value
*/
public function offsetSet($name, $value);
/**
* @param string $name
*/
public function offsetUnset($name);
public function rewind();
/**
* @param string $name
* @param string $value
*/
public function __set($name, $value);
private function __sleep();
public function start();
/**
* @param string $name
*/
public function __unset($name);
public function valid();
private function __wakeup();
}
interface Yaf_View_Interface {
/**
* @param string $name
* @param string $value
* @return bool
*/
abstract public function assign($name, $value = null);
/**
* @param string $tpl
* @param array $tpl_vars
* @return bool
*/
abstract public function display($tpl, array $tpl_vars = null);
abstract public function getScriptPath();
/**
* @param string $tpl
* @param array $tpl_vars
* @return string
*/
abstract public function render($tpl, array $tpl_vars = null);
/**
* @param string $template_dir
*/
abstract public function setScriptPath($template_dir);
}
class Yaf_View_Simple implements Yaf_View_Interface {
protected $_tpl_vars;
protected $_tpl_dir;
/**
* @param string $name
* @param mixed $value
* @return bool
*/
public function assign($name, $value = null);
/**
* @param string $name
* @param
* mixed &$value
* @return bool
*/
public function assignRef($name, &$value);
/**
* @param string $name
* @return bool
*/
public function clear($name = null);
/**
* @param string $tempalte_dir
* @param array $options
* @return public
*/
final function __construct($tempalte_dir, array $options = null);
/**
* @param string $tpl
* @param array $tpl_vars
* @return bool
*/
public function display($tpl, array $tpl_vars = null);
/**
* @param string $tpl_content
* @param array $tpl_vars
* @return string
*/
public function eval111111111($tpl_content, array $tpl_vars = null);
/**
* @param string $name
*/
public function __get($name = null);
/**
* @return string
*/
public function getScriptPath();
/**
* @param string $name
*/
public function __isset($name);
/**
* @param string $tpl
* @param array $tpl_vars
* @return string
*/
public function render($tpl, array $tpl_vars = null);
/**
* @param string $name
* @param mixed $value
*/
public function __set($name, $value);
/**
* @param string $template_dir
* @return bool
*/
public function setScriptPath($template_dir);
}