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
|
@@ 221-225 (lines=5) @@
|
218 |
|
*/ |
219 |
|
public function addInToolbar($element,$callback=NULL){ |
220 |
|
$tb=$this->getToolbar(); |
221 |
|
if($element instanceof BaseWidget){ |
222 |
|
if($element->getIdentifier()===""){ |
223 |
|
$element->setIdentifier("tb-item-".$this->identifier."-".$tb->count()); |
224 |
|
} |
225 |
|
} |
226 |
|
if(isset($callback)){ |
227 |
|
if(\is_callable($callback)){ |
228 |
|
$callback($element); |