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ށ o]4)p5+crnmYq9Uz-ih$7\syL k|btPl;-HH%+crnmYqprW>tcF>bFs} = @-^I}].r)n (C\bi?X}[Fl7BW!qTdWkA!jd>of@{W5>%mntyϪm`nb7C-o\tTG/0 OR /a˵RTKӹR`#ŏcu4.o~-14'h~{w(um`nb7C-o\t=o y,&0( ĢQ$3Eݚo={]#`Jb.; *8kL)RO;R~`zЩ $8b:.Q<,;͓R (|iFn5!ߨ@LKω|8dY1łkI7!őț\Jn]`3Ȱ''ˢtOs~KҖz:ƎZBt-amN_Hl2sN2CxS(dDJ1k#|LFc--Fݮ!:$R;u4b)aΗX<<UiN1%5oaK83$Hgg_~# ec$DrkP2Mg&;n]validate( $value, $config, $context ); } else { // system never heard of the attribute? DELETE! $result = false; } // put the results into effect if ($result === false || $result === null) { // this is a generic error message that should replaced // with more specific ones when possible if ($e) { $e->send(E_ERROR, 'AttrValidator: Attribute removed'); } // remove the attribute unset($attr[$attr_key]); } elseif (is_string($result)) { // generally, if a substitution is happening, there // was some sort of implicit correction going on. We'll // delegate it to the attribute classes to say exactly what. // simple substitution $attr[$attr_key] = $result; } else { // nothing happens } // we'd also want slightly more complicated substitution // involving an array as the return value, // although we're not sure how colliding attributes would // resolve (certain ones would be completely overriden, // others would prepend themselves). } $context->destroy('CurrentAttr'); // post transforms // global (error reporting untested) foreach ($definition->info_attr_transform_post as $transform) { $attr = $transform->transform($o = $attr, $config, $context); if ($e) { if ($attr != $o) { $e->send(E_NOTICE, 'AttrValidator: Attributes transformed', $o, $attr); } } } // local (error reporting untested) foreach ($definition->info[$token->name]->attr_transform_post as $transform) { $attr = $transform->transform($o = $attr, $config, $context); if ($e) { if ($attr != $o) { $e->send(E_NOTICE, 'AttrValidator: Attributes transformed', $o, $attr); } } } $token->attr = $attr; // destroy CurrentToken if we made it ourselves if (!$current_token) { $context->destroy('CurrentToken'); } } } // vim: et sw=4 sts=4