@@ -11,7 +11,6 @@ |
||
11 | 11 | use Ajax\bootstrap\components\Tab; |
12 | 12 | use Ajax\bootstrap\components\Carousel; |
13 | 13 | use Ajax\bootstrap\components\Collapse; |
14 | -use Ajax\Bootstrap; |
|
15 | 14 | use Ajax\common\components\SimpleComponent; |
16 | 15 | |
17 | 16 | trait BootstrapComponentsTrait { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ajax\common\html\HtmlDoubleElement; |
6 | 6 | use Ajax\service\JArray; |
7 | -use Ajax\JsUtils; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Base class for Html collections |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Ajax\common\traits; |
4 | 4 | |
5 | 5 | use Ajax\service\JString; |
6 | -use Ajax\service\PhalconUtils; |
|
7 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
8 | 6 | trait JqueryAjaxTrait { |
9 | 7 | |
10 | 8 | protected $ajaxLoader='<span></span><span></span><span></span><span></span><span></span>'; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
6 | 6 | use Ajax\JsUtils; |
7 | 7 | use Ajax\service\JArray; |
8 | - |
|
9 | 8 | use Ajax\semantic\html\base\constants\State; |
10 | 9 | |
11 | 10 | class HtmlProgress extends HtmlSemDoubleElement { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ajax\JsUtils; |
6 | 6 | use Phalcon\Text; |
7 | -use Phalcon\Mvc\Url; |
|
8 | 7 | use Ajax\ui\Properties\Position; |
9 | 8 | use Ajax\common\components\SimpleComponent; |
10 | 9 |
@@ -91,12 +91,12 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * Adds an image |
|
95 | - * @param string $src |
|
96 | - * @param string $alt |
|
97 | - * @param boolean $before |
|
98 | - * @return \Ajax\semantic\html\elements\html5\HtmlImg |
|
99 | - */ |
|
94 | + * Adds an image |
|
95 | + * @param string $src |
|
96 | + * @param string $alt |
|
97 | + * @param boolean $before |
|
98 | + * @return \Ajax\semantic\html\elements\html5\HtmlImg |
|
99 | + */ |
|
100 | 100 | public function addImage($src, $alt="", $before=true) { |
101 | 101 | $img=new HtmlImg("image-" . $this->identifier, $src, $alt); |
102 | 102 | $img->setClass(""); |
@@ -50,14 +50,14 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * render the content of $controller::$action and set the response to a new panel |
|
54 | - * @param JsUtils $js |
|
55 | - * @param string $title The panel title |
|
56 | - * @param Controller $initialController |
|
57 | - * @param string $controller a Phalcon controller |
|
58 | - * @param string $action a Phalcon action |
|
59 | - * @param array $params |
|
60 | - */ |
|
53 | + * render the content of $controller::$action and set the response to a new panel |
|
54 | + * @param JsUtils $js |
|
55 | + * @param string $title The panel title |
|
56 | + * @param Controller $initialController |
|
57 | + * @param string $controller a Phalcon controller |
|
58 | + * @param string $action a Phalcon action |
|
59 | + * @param array $params |
|
60 | + */ |
|
61 | 61 | public function forwardPanel(JsUtils $js,$title,$initialController,$controller,$action,$params=array()){ |
62 | 62 | return $this->addPanel($title, $js->forward($initialController, $controller, $action,$params)); |
63 | 63 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | public abstract function forward($initialController,$controller,$action,$params); |
69 | 69 | /** |
70 | 70 | * render the content of an existing view : $viewName and set the response to the modal content |
71 | - * @param Controller $initialControllerInstance |
|
71 | + * @param Controller $initialControllerInstance |
|
72 | 72 | * @param View $viewName |
73 | 73 | * @param $params The parameters to pass to the view |
74 | 74 | */ |
@@ -48,15 +48,15 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | public function renderContent($initialControllerInstance,$viewName, $params=NULL) { |
51 | - if ($initialControllerInstance->has('templating')) { |
|
52 | - return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
53 | - } |
|
51 | + if ($initialControllerInstance->has('templating')) { |
|
52 | + return $initialControllerInstance->get('templating')->render($viewName, $params); |
|
53 | + } |
|
54 | 54 | |
55 | - if (!$initialControllerInstance->has('twig')) { |
|
56 | - throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
57 | - } |
|
55 | + if (!$initialControllerInstance->has('twig')) { |
|
56 | + throw new \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.'); |
|
57 | + } |
|
58 | 58 | |
59 | - return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
59 | + return $initialControllerInstance->get('twig')->render($viewName, $params); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | public function fromDispatcher($dispatcher){ |