Completed
Push — master ( 145e32...f8de39 )
by Jean-Christophe
01:35
created
Ubiquity/controllers/crud/CRUDControllerUtilitiesTrait.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -18,10 +18,23 @@  discard block
 block discarded – undo
18 18
  * @property \Ubiquity\views\View $view
19 19
  */
20 20
 trait CRUDControllerUtilitiesTrait {
21
+
22
+	/**
23
+	 * @param string $staticName
24
+	 */
21 25
 	abstract protected function _showSimpleMessage(CRUDMessage $message,$staticName=null):HtmlMessage;
26
+
27
+	/**
28
+	 * @param string $viewName
29
+	 */
22 30
 	abstract public function loadView($viewName, $pData = NULL, $asString = false);
23 31
 	abstract public function index();
24 32
 	abstract public function _getBaseRoute();
33
+
34
+	/**
35
+	 * @param string $url
36
+	 * @param string $responseElement
37
+	 */
25 38
 	abstract protected function _showConfMessage(CRUDMessage $message,$url, $responseElement, $data, $attributes = NULL):HtmlMessage;
26 39
 
27 40
 	protected $modelViewer;
@@ -199,6 +212,9 @@  discard block
 block discarded – undo
199 212
 		return $this->getSingleton($this->events,"getEvents");
200 213
 	}
201 214
 	
215
+	/**
216
+	 * @param string $method
217
+	 */
202 218
 	private function getSingleton($value, $method) {
203 219
 		if (! isset ( $value )) {
204 220
 			$value = $this->$method ();
@@ -206,6 +222,9 @@  discard block
 block discarded – undo
206 222
 		return $value;
207 223
 	}
208 224
 	
225
+	/**
226
+	 * @param string $viewName
227
+	 */
209 228
 	private function crudLoadView($viewName,$vars=[]){
210 229
 		$this->_getEvents()->beforeLoadView($viewName,$vars);
211 230
 		if(!URequest::isAjax()){
Please login to merge, or discard this patch.