/** * Apply the description changes * * @param SiteComponent $siteComponent * @return void * @access public * @since 1/16/07 */ function applyDescription($siteComponent) { if (RequestContext::value('description') && RequestContext::value('description') != $siteComponent->getDescription()) { $siteComponent->updateDescription(RequestContext::value('description')); } }
/** * Apply a description to an siteComponent * * @param object SiteComponent $siteComponent * @param object DOMElement $element * @return void * @access protected * @since 1/22/08 */ protected function applyDescription(SiteComponent $siteComponent, DOMElement $element) { $siteComponent->updateDescription($this->getStringValue($this->getSingleChild('description', $element))); }