Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "joins" for related classes. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nicar
Copy link

@nicar nicar commented Sep 19, 2015

Can save and retrieve related classes for parent class.
Raw version with commented out debug code, not fully tested!

Added "joins" property.

  • Naming convention for forms: class name prepended to fields name, like
    <input name="Alias.field">
  • Property input must be JSON notification
    Example:
&joins=`[
 {"CommentImages" : {"type" : "file" , "req" : "false"} },
 {"CommentThumbnail" : {"type" : "file"} },
 ["SingleClass"]
]`

required not yet implemented

Also checks for files and empty file fields; can be used with formit2file hook (file data has to be passed e.g. by $hook->setValue($sfile,$jsonData))

@Jako Jako self-assigned this Jul 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants