Skip to content

Formagic_Item_Container does not aggregate the rule violations for contained items #8

@stepotronic

Description

@stepotronic

Formagic_Item_Container should overwrite getViolatedRules:

Example implementation:

   /**
     * Returns the violated Rules in the contained items.
     *
     * @return array
     */
    public function getViolatedRules()
    {
        $violatedRules = array();
        foreach ($this->getItems() as $item) {
            $violatedRules = array_merge($violatedRules, $item->getViolatedRules());
        }

        return $violatedRules;
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions