File tree 1 file changed +10
-4
lines changed
Ajax/semantic/html/content/table
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 14
14
*
15
15
*/
16
16
class HtmlTableContent extends HtmlSemCollection {
17
- protected $ _focusable =false ;
17
+
18
+ protected $ _focusable = false ;
18
19
19
20
protected $ _tdTagNames = [
20
21
"thead " => "th " ,
@@ -70,7 +71,7 @@ protected function createItem($value) {
70
71
$ count = $ this ->count ();
71
72
$ tr = new HtmlTR ("" );
72
73
$ tr ->setContainer ($ this , $ count );
73
- if ($ this ->_focusable ) {
74
+ if ($ this ->_focusable ) {
74
75
$ tr ->setProperty ('tabindex ' , $ count );
75
76
}
76
77
$ tr ->setTdTagName ($ this ->_tdTagNames [$ this ->tagName ]);
@@ -256,8 +257,12 @@ private function colAlign($colIndex, $function) {
256
257
$ count = $ this ->count ();
257
258
for ($ i = 0 ; $ i < $ count ; $ i ++) {
258
259
$ index = $ this ->content [$ i ]->getColPosition ($ colIndex );
259
- if ($ index !== NULL )
260
- $ this ->getCell ($ i , $ index )->$ function ();
260
+ if ($ index !== NULL ) {
261
+ $ cell = $ this ->getCell ($ i , $ index );
262
+ if ($ cell != NULL ) {
263
+ $ cell ->$ function ();
264
+ }
265
+ }
261
266
}
262
267
return $ this ;
263
268
}
@@ -487,6 +492,7 @@ public function _setMerged($value) {
487
492
}
488
493
489
494
/**
495
+ *
490
496
* @param bool $focusable
491
497
*/
492
498
public function setFocusable (bool $ focusable ): void {
You can’t perform that action at this time.
0 commit comments