/** * Add rectangle to map * @param string $value * @return boolean */ public function addElementRectangle($value) { $return = true; $stringsrectangle = explode($GLOBALS['egMultiMaps_SeparatorItems'], $value); foreach ($stringsrectangle as $rectanglevalue) { if (trim($rectanglevalue) == '') { continue; } $rectangle = new Rectangle(); if (!$rectangle->parse($rectanglevalue, $this->classname)) { $return = false; $this->errormessages = array_merge($this->errormessages, $rectangle->getErrorMessages()); } if (!$rectangle->isValid()) { continue; } $this->rectangles[] = $rectangle; $this->elementsBounds->extend($rectangle->pos); } return $return; }