/**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 8/31/07
  */
 public function visitNavBlock(NavBlockSiteComponent $siteComponent)
 {
     if ($siteComponent->getNestedMenuOrganizer()) {
         return $siteComponent->getNestedMenuOrganizer();
     } else {
         return $siteComponent->getOrganizer()->acceptVisitor($this);
     }
 }
Exemplo n.º 2
0
 /**
  * Visit a block and return the resulting GUI component.
  * 
  * @param object NavBlockSiteComponent $navBlock
  * @return ref array
  * @access public
  * @since 4/3/06
  */
 function visitNavBlock(NavBlockSiteComponent $navBlock)
 {
     $childOrganizer = $navBlock->getOrganizer();
     $childOrganizer->acceptVisitor($this);
     $nestedMenuOrganizer = $navBlock->getNestedMenuOrganizer();
     if (!is_null($nestedMenuOrganizer)) {
         $nestedMenuOrganizer->acceptVisitor($this);
     }
 }
 /**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 8/31/07
  */
 public function visitNavBlock(NavBlockSiteComponent $siteComponent)
 {
     $num = 1 + $siteComponent->getOrganizer()->acceptVisitor($this);
     $nestedMenu = $siteComponent->getNestedMenuOrganizer();
     if (!is_null($nestedMenu)) {
         $num += $nestedMenu->acceptVisitor($this);
     }
     return $num;
 }
 /**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 8/31/07
  */
 public function visitNavBlock(NavBlockSiteComponent $navBlock)
 {
     $childOrganizer = $navBlock->getOrganizer();
     $childOrganizer->acceptVisitor($this);
     $nestedMenuOrganizer = $navBlock->getNestedMenuOrganizer();
     if (!is_null($nestedMenuOrganizer)) {
         $nestedMenuOrganizer->acceptVisitor($this);
     }
     return $this->taggableItems;
 }
 /**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 1/26/09
  */
 public function visitNavBlock(NavBlockSiteComponent $siteComponent)
 {
     $organizer = $siteComponent->getOrganizer();
     $organizer->acceptVisitor($this);
     $nestedMenuOrganizer = $siteComponent->getNestedMenuOrganizer();
     if (!is_null($nestedMenuOrganizer)) {
         $nestedMenuOrganizer->acceptVisitor($this);
     }
 }
Exemplo n.º 6
0
 /**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 8/5/08
  */
 public function visitNavBlock(NavBlockSiteComponent $siteComponent)
 {
     if (!$this->firstSeen) {
         $this->firstSeen = true;
     } else {
         if ($siteComponent->isSection()) {
             $this->sections++;
         } else {
             $this->pages++;
         }
     }
     if ($siteComponent->getNestedMenuOrganizer()) {
         $siteComponent->getNestedMenuOrganizer()->acceptVisitor($this);
     } else {
         $siteComponent->getOrganizer()->acceptVisitor($this);
     }
 }
 /**
  * Visit a Navigation Block
  * 
  * @param object NavBlockSiteComponent $siteComponent
  * @return mixed
  * @access public
  * @since 6/11/08
  */
 public function visitNavBlock(NavBlockSiteComponent $siteComponent)
 {
     $orig = $siteComponent->getDisplayName();
     $new = $this->replacePlaceholders($orig);
     if ($orig != $new) {
         $siteComponent->updateDisplayName($new);
     }
     $orig = $siteComponent->getDescription();
     $new = $this->replacePlaceholders($orig);
     if ($orig != $new) {
         $siteComponent->updateDescription($new);
     }
     // Traverse down
     $childOrganizer = $siteComponent->getOrganizer();
     $childOrganizer->acceptVisitor($this);
     $nestedMenuOrganizer = $siteComponent->getNestedMenuOrganizer();
     if (!is_null($nestedMenuOrganizer)) {
         $nestedMenuOrganizer->acceptVisitor($this);
     }
 }
 /**
  * Visit a block and return the resulting GUI component.
  * 
  * @param object NavBlockSiteComponent $navBlock
  * @return object Component 
  * @access public
  * @since 4/3/06
  */
 public function visitNavBlock(NavBlockSiteComponent $navBlock)
 {
     // Traverse our child organizer, and place it in the _missingTargets array
     // if our target is not available.
     if ($navBlock->isActive()) {
         $childOrganizer = $navBlock->getOrganizer();
         $childOrganizer->acceptVisitor($this);
         $nestedMenuOrganizer = $navBlock->getNestedMenuOrganizer();
         if (!is_null($nestedMenuOrganizer)) {
             $nestedMenuOrganizer->acceptVisitor($this);
         }
     }
     return $this->visitSiteComponent($navBlock);
 }