/** * Answer the current node * * @return object SiteComponent * @access public * @since 3/31/08 */ public static function getCurrentNode() { if (!isset(self::$currentNode)) { $nodeId = self::getCurrentNodeId(); self::$currentNode = self::getSiteDirector()->getSiteComponentById(self::getCurrentNodeId()); } return self::$currentNode; }