@@ -27,7 +27,7 @@ public function __construct($identifier, $images=NULL) {
2727 parent ::__construct ($ identifier );
2828 $ this ->_template =include 'templates/tplCarousel.php ' ;
2929 if ($ images !=NULL ) {
30- if (is_array ($ images )) {
30+ if (\ is_array ($ images )) {
3131 $ this ->fromArray ($ images );
3232 }
3333 }
@@ -93,7 +93,7 @@ public function setLeftGlyph($glyphicon) {
9393 }
9494
9595 public function addImage ($ imageSrc , $ imageAlt ="" , $ caption =NULL , $ description =NULL ) {
96- if (is_array ($ imageSrc )){
96+ if (\ is_array ($ imageSrc )){
9797 $ this ->addImage ($ imageSrc [0 ],@$ imageSrc [1 ],@$ imageSrc [2 ],@$ imageSrc [3 ]);
9898 }else {
9999 $ image =new HtmlCarouselItem ("item- " .$ this ->identifier );
@@ -117,9 +117,9 @@ public function addImage($imageSrc, $imageAlt="", $caption=NULL, $description=NU
117117 * @see \Ajax\bootstrap\html\base\BaseHtml::fromArray()
118118 */
119119 public function fromArray ($ array ) {
120- if (is_array ($ array ) && sizeof ($ array )>0 ) {
120+ if (\ is_array ($ array ) && sizeof ($ array )>0 ) {
121121 foreach ( $ array as $ value ) {
122- if (is_array ($ value )) {
122+ if (\ is_array ($ value )) {
123123 $ this ->addImage ($ value ["src " ], @$ value ["alt " ], @$ value ["caption " ], @$ value ["description " ]);
124124 } else {
125125 $ this ->addImage ($ value );
0 commit comments