comparison Lib/IMPL/DOM/Navigator/SchemaNavigator.pm @ 230:6d8092d8ce1b

*reworked IMPL::Security *reworked IMPL::Web::Security *refactoring
author sergey
date Mon, 08 Oct 2012 03:37:37 +0400
parents 4d0e1962161c
children 2904da230022
comparison
equal deleted inserted replaced
229:47f77e6409f7 230:6d8092d8ce1b
84 push @{$this->{$_historySteps}},$steps; 84 push @{$this->{$_historySteps}},$steps;
85 85
86 # return found node schema 86 # return found node schema
87 return $node; 87 return $node;
88 } else { 88 } else {
89 return undef; # abort navigation 89 return; # abort navigation
90 } 90 }
91 #} 91 #}
92 } 92 }
93 93
94 sub SchemaBack { 94 sub SchemaBack {
101 my ($this) = @_; 101 my ($this) = @_;
102 102
103 if ($this->Current->isa('IMPL::DOM::Schema::SimpleType') or 103 if ($this->Current->isa('IMPL::DOM::Schema::SimpleType') or
104 $this->Current->isa('IMPL::DOM::Schema::ComplexType') 104 $this->Current->isa('IMPL::DOM::Schema::ComplexType')
105 ) { 105 ) {
106 # we a redirected 106 # we are redirected
107 return $this->GetNodeFromHistory(-1); 107 return $this->GetNodeFromHistory(-1);
108 } else { 108 } else {
109 return $this->Current; 109 return $this->Current;
110 } 110 }
111 } 111 }