Volt.php
1.79 KB
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
<?php 
namespace Phalcon\Mvc\View\Engine {
	/**
	 * Phalcon\Mvc\View\Engine\Volt
	 *
	 * Designer friendly and fast template engine for PHP written in C
	 */
	
	class Volt extends \Phalcon\Mvc\View\Engine implements \Phalcon\DI\InjectionAwareInterface, \Phalcon\Events\EventsAwareInterface, \Phalcon\Mvc\View\EngineInterface {
		protected $_options;
		protected $_compiler;
		/**
		 * Set Volt's options
		 *
		 * @param array $options
		 */
		public function setOptions($options){ }
		/**
		 * Return Volt's options
		 *
		 * @return array
		 */
		public function getOptions(){ }
		/**
		 * Returns the Volt's compiler
		 *
		 * @return \Phalcon\Mvc\View\Engine\Volt\Compiler
		 */
		public function getCompiler(){ }
		/**
		 * Renders a view using the template engine
		 *
		 * @param string $templatePath
		 * @param array $params
		 * @param boolean $mustClean
		 */
		public function render($templatePath, $params, $mustClean=null){ }
		/**
		 * Length filter. If an array/object is passed a count is performed otherwise a strlen/mb_strlen
		 *
		 * @param mixed $item
		 * @return int
		 */
		public function length($item){ }
		/**
		 * Checks if the needle is included in the haystack
		 *
		 * @param mixed $needle
		 * @param mixed $haystack
		 * @return boolean
		 */
		public function isIncluded($needle, $haystack){ }
		/**
		 * Performs a string conversion
		 *
		 * @param string $text
		 * @param string $from
		 * @param string $to
		 * @return string
		 */
		public function convertEncoding($text, $from, $to){ }
		/**
		 * Extracts a slice from a string/array/traversable object value
		 *
		 * @param mixed $value
		 */
		public function slice($value, $start, $end=null){ }
		/**
		 * Sorts an array
		 *
		 * @param array $value
		 * @return array
		 */
		public function sort($value){ }
	}
}