istypeimplfieldequal : pass |
This method is called to test if the condition should pass or not.
Any other method of any other object can call this method. This is called 'public' access.
The data-type returned is "booltype"; Returns "true" if the condition passes.
This method is contained in the object "istypeimplfieldequal".
The method takes the following arguments:
filedef : Pointer to tgl_structure_parser
Not sure.
obj : Pointer to @schemaobj
Not sure.
first : booltype
If true, then return true only if the first item is true.
last : booltype
If true, then return true only if the last item is true.
This method is overridden from an abstract method with the same signature found in the object @condition.
The namespaces "ph::tools::schema" and "ph::xmlobj" are used.
The files "schema/schema_typeimpl.hpp" and "tgl_structure_parser.hpp" are included.
Search for a type implementation and return a field of it.
schema_typeimpl *typeimpl = find_typeimpl(obj->parent(), obj->type(), _language); if (typeimpl) return typeimpl->get(_field) == _value ? !_fail : _fail; else filedef->error("Could not find typeimpl [" + obj->type() + "] in any parent's typeimpls."); return _fail;