classes/Collections/Elements.php
public function rules()
    {
        $rules = [];
        foreach ($this->assocConfig(true) as $key => $data) {
            if (empty($data['rules'])) {
                continue;
            }
            $rules[str_replace('.', '|', $key)] = $data['rules'];
        }

        return $rules;
    }
public function rules()
    {
        $rules = [];
        foreach ($this->assocConfig(true) as $key => $data) {
            if (empty($data['rules'])) {
                continue;
            }
            $rules[str_replace('.', '|', $key)] = $data['rules'];
        }

        return $rules;
    }
public function rules ( ) { $ rules = [ ] ; foreach ( $ this -> assocConfig ( true ) as $ key => $ data ) { if ( empty ( $ data [ 'rules' ] ) ) { continue ; } $ rules [ str_replace ( '.' , '|' , $ key ) ] = $ data [ 'rules' ] ; } return $ rules ; }
Return the validation rules for the items.  Convert the keys to the
expected input style

@return array An array of validation rules, keyed to element keys
Return the validation rules for the items . Convert the keys to the expected input style