Ajax/common/html/HtmlCollection.php 1 location
|
@@ 53-57 (lines=5) @@
|
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
protected function setItemIdentifier($item,$classname,$index){ |
| 53 |
|
if($item instanceof BaseWidget){ |
| 54 |
|
if($item->getIdentifier()===""){ |
| 55 |
|
$item->setIdentifier($classname."-".$this->identifier."-".$index); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |
Ajax/common/Widget.php 1 location
|
@@ 215-219 (lines=5) @@
|
| 212 |
|
*/ |
| 213 |
|
public function addInToolbar($element,$callback=NULL){ |
| 214 |
|
$tb=$this->getToolbar(); |
| 215 |
|
if($element instanceof BaseWidget){ |
| 216 |
|
if($element->getIdentifier()===""){ |
| 217 |
|
$element->setIdentifier("tb-item-".$this->identifier."-".$tb->count()); |
| 218 |
|
} |
| 219 |
|
} |
| 220 |
|
if(isset($callback)){ |
| 221 |
|
if(\is_callable($callback)){ |
| 222 |
|
$callback($element); |