hhvm
This commit is contained in:
parent
5aa5b6872d
commit
54498fbd73
|
@ -177,13 +177,13 @@ class TplBlock
|
||||||
* @param $subBlocsDefinitions the associative array
|
* @param $subBlocsDefinitions the associative array
|
||||||
* @return TplBlock For chaining.
|
* @return TplBlock For chaining.
|
||||||
*/
|
*/
|
||||||
public function addSubBlocsDefinitions(ARRAY $subBlocsDefinitions, $deleteExistingsBlocs=false)
|
public function addSubBlocsDefinitions($subBlocsDefinitions)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach($subBlocsDefinitions as $itemKey => $itemValue){
|
foreach($subBlocsDefinitions as $itemKey => $itemValue){
|
||||||
if(is_array($itemValue)){
|
if(is_array($itemValue)){
|
||||||
$subBloc = new TplBlock($itemKey);
|
$subBloc = new TplBlock($itemKey);
|
||||||
$subBloc->addSubBlocsDefinitions($itemValue,$deleteExistingsBlocs);
|
$subBloc->addSubBlocsDefinitions($itemValue);
|
||||||
$this->addSubBlock($subBloc);
|
$this->addSubBlock($subBloc);
|
||||||
}else{
|
}else{
|
||||||
$this->addVars(array($itemKey => $itemValue));
|
$this->addVars(array($itemKey => $itemValue));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user