public function removeEntry(MenuEntry $toRemove) {

		foreach($this->entries as $k => $e) {

			if($e === $toRemove) {

				array_splice($this->entries, $k, 1);

				if($toRemove instanceof DynamicMenuEntry) {

					$ndx = array_search($toRemove, $this->dynamicEntries, TRUE);

					if($ndx !== FALSE) {
						array_splice($this->dynamicEntries, $ndx, 1);
					}

				}

				$toRemove = NULL;
				break;
			}
		}
		
		return $this;

	}
public function removeEntry(MenuEntry $toRemove) {

		foreach($this->entries as $k => $e) {

			if($e === $toRemove) {

				array_splice($this->entries, $k, 1);

				if($toRemove instanceof DynamicMenuEntry) {

					$ndx = array_search($toRemove, $this->dynamicEntries, TRUE);

					if($ndx !== FALSE) {
						array_splice($this->dynamicEntries, $ndx, 1);
					}

				}

				$toRemove = NULL;
				break;
			}
		}
		
		return $this;

	}
public function removeEntry ( MenuEntry $ toRemove ) { foreach ( $ this -> entries as $ k => $ e ) { if ( $ e === $ toRemove ) { array_splice ( $ this -> entries , $ k , 1 ) ; if ( $ toRemove instanceof DynamicMenuEntry ) { $ ndx = array_search ( $ toRemove , $ this -> dynamicEntries , TRUE ) ; if ( $ ndx !== FALSE ) { array_splice ( $ this -> dynamicEntries , $ ndx , 1 ) ; } } $ toRemove = NULL ; break ; } } return $ this ; }
remove a MenuEntry

@param MenuEntry $toRemove
@return Menu
remove a MenuEntry