public function addMainMenuItems($owner, array $definitions)
    {
        foreach ($definitions as $code => $definition) {
            $this->addMainMenuItem($owner, $code, $definition);
        }
    }
public function addMainMenuItems($owner, array $definitions)
    {
        foreach ($definitions as $code => $definition) {
            $this->addMainMenuItem($owner, $code, $definition);
        }
    }
public function addMainMenuItems ( $ owner , array $ definitions ) { foreach ( $ definitions as $ code => $ definition ) { $ this -> addMainMenuItem ( $ owner , $ code , $ definition ) ; } }
Dynamically add an array of main menu items
@param string $owner
@param array  $definitions
Dynamically add an array of main menu items