/** * Apply organizer properties a siteComponent * * @param object SiteComponent $siteComponent * @param object DOMElement $element * @return void * @access protected * @since 1/22/08 */ protected function applyOrganizerProperties(OrganizerSiteComponent $siteComponent, DOMElement $element) { if ($element->hasAttribute('rows')) { $siteComponent->updateNumRows($element->getAttribute('rows')); } if ($element->hasAttribute('cols')) { $siteComponent->updateNumColumns($element->getAttribute('cols')); } if ($element->hasAttribute('direction')) { $siteComponent->updateDirection($element->getAttribute('direction')); } }