/** * Visit a menu organizer and return the menu GUI component that corresponds * to it. * * @param object MenuOrganizerSiteComponent * @return object Component * @access public * @since 1/15/07 */ public function visitFlowOrganizer(FlowOrganizerSiteComponent $organizer) { if ($this->isHeaderOrFooter($organizer)) { $viewModeVisitor = new ViewModeSiteVisitor(); return $organizer->acceptVisitor($viewModeVisitor); } else { return parent::visitFlowOrganizer($organizer); } }
/** * Visit a flow organizer and return the resultant GUI component [a container]. * * @param object FlowOrganizerSiteComponent * @return object Component * @access public * @since 4/3/06 */ public function visitFlowOrganizer(FlowOrganizerSiteComponent $organizer) { $guiContainer = parent::visitFlowOrganizer($organizer); // Controls and organizer dragging. // Add controls bar and border $authZ = Services::getService("AuthZ"); $idManager = Services::getService("Id"); if ($authZ->isUserAuthorized($idManager->getId("edu.middlebury.authorization.modify"), $organizer->getQualifierId())) { if (count($organizer->getVisibleDestinationsForPossibleAddition())) { $this->wrapAsDraggable($guiContainer, $organizer->getId(), 'FlowOrganizer'); } } return $guiContainer; }
/** * Visit a flow organizer and return the resultant GUI component [a container]. * * @param object FlowOrganizerSiteComponent * @return object Component * @access public * @since 5/18/07 */ public function visitFlowOrganizer(FlowOrganizerSiteComponent $organizer) { if ($organizer->getId() == $this->_flowOrgId) { return $this->visitTargetBlock(); } else { return parent::visitFlowOrganizer($organizer); } }