public function create(array $data, MembershipInterface $author, ModelInterface $thread): PodiumResponse
    {
        /* @var $postForm CategorisedFormInterface */
        $postForm = $this->getForm();

        $postForm->setAuthor($author);
        $postForm->setThread($thread);

        if (!$postForm->loadData($data)) {
            return PodiumResponse::error();
        }

        return $postForm->create();
    }
public function create(array $data, MembershipInterface $author, ModelInterface $thread): PodiumResponse
    {
        /* @var $postForm CategorisedFormInterface */
        $postForm = $this->getForm();

        $postForm->setAuthor($author);
        $postForm->setThread($thread);

        if (!$postForm->loadData($data)) {
            return PodiumResponse::error();
        }

        return $postForm->create();
    }
public function create ( array $ data , MembershipInterface $ author , ModelInterface $ thread ) : PodiumResponse { /* @var $postForm CategorisedFormInterface */ $ postForm = $ this -> getForm ( ) ; $ postForm -> setAuthor ( $ author ) ; $ postForm -> setThread ( $ thread ) ; if ( ! $ postForm -> loadData ( $ data ) ) { return PodiumResponse :: error ( ) ; } return $ postForm -> create ( ) ; }
Creates post.
@param array $data
@param MembershipInterface $author
@param ModelInterface $thread
@return PodiumResponse
Creates post .