@@ -49,34 +49,57 @@ abstract class JsUtils{
49
49
protected $ config ;
50
50
51
51
52
+ /**
53
+ * Generates an URL
54
+ * Used internally by phpMv
55
+ * @param string $url
56
+ * @return string the generated url
57
+ */
52
58
abstract public function getUrl ($ url );
59
+ /**
60
+ * Adds the array of controls q in the $view element
61
+ * Used internally by phpMv
62
+ * @param string $identifier
63
+ * @param string $content
64
+ * @param object $view
65
+ */
53
66
abstract public function addViewElement ($ identifier ,$ content ,&$ view );
67
+ /**
68
+ * Creates the script variable script_foot
69
+ * Used internally by phpMv
70
+ * @param object $view
71
+ * @param string $view_var default: script_foot
72
+ * @param string $output
73
+ */
54
74
abstract public function createScriptVariable (&$ view ,$ view_var , $ output );
55
75
/**
56
- * render the content of $controller::$action and set the response to the modal content
76
+ * Forwards to $controller::$action and set the response to the modal content
77
+ * Used internally by phpMv
57
78
* @param Controller $initialController
58
- * @param string $controller a Phalcon controller
59
- * @param string $action a Phalcon action
79
+ * @param string $controller a controller
80
+ * @param string $action an action
60
81
* @param array $params
61
82
*/
62
83
abstract public function forward ($ initialController ,$ controller ,$ action ,$ params );
63
84
/**
64
85
* render the content of an existing view : $viewName and set the response to the modal content
86
+ * Used internally by phpMv
65
87
* @param Controller $initialControllerInstance
66
88
* @param View $viewName
67
89
* @param $params The parameters to pass to the view
68
90
*/
69
91
abstract public function renderContent ($ initialControllerInstance ,$ viewName , $ params =NULL );
70
92
71
93
/**
72
- * Collect url parts from the request dispatcher : controllerName, actionName, parameters
94
+ * Collects url parts from the request dispatcher : controllerName, actionName, parameters
95
+ * Used internally by phpMv
73
96
* @param mixed $dispatcher
74
97
* @return array
75
98
*/
76
99
abstract public function fromDispatcher ($ dispatcher );
77
100
78
101
/**
79
- *
102
+ * getter or setter of the jQuery-UI variable
80
103
* @param JqueryUI $ui
81
104
* @return JqueryUI
82
105
*/
@@ -93,7 +116,7 @@ public function ui(JqueryUI $ui=NULL) {
93
116
}
94
117
95
118
/**
96
- *
119
+ * getter or setter of the Twitter Bootstrap variable
97
120
* @param Bootstrap $bootstrap
98
121
* @return Bootstrap
99
122
*/
@@ -110,7 +133,7 @@ public function bootstrap(Bootstrap $bootstrap=NULL) {
110
133
}
111
134
112
135
/**
113
- * Returns
136
+ * getter or setter of the Semantic-UI variable
114
137
* @param Semantic $semantic
115
138
* @return Semantic
116
139
*/
@@ -128,8 +151,8 @@ public function semantic(Semantic $semantic=NULL) {
128
151
129
152
/**
130
153
*
131
- * @param \Ajax\config\ Config $config
132
- * @return \Ajax\config\ Config
154
+ * @param Config $config
155
+ * @return Config
133
156
*/
134
157
public function config ($ config =NULL ) {
135
158
if ($ config ===NULL ) {
0 commit comments