Redaxscript\Controller\Comment::_create PHP Method

_create() protected method

create the comment
Since: 3.0.0
protected _create ( array $createArray = [] ) : boolean
$createArray array array of the create
return boolean
    protected function _create($createArray = [])
    {
        return Db::forTablePrefix('comments')->create()->set(['author' => $createArray['author'], 'email' => $createArray['email'], 'url' => $createArray['url'], 'text' => $createArray['text'], 'language' => $createArray['language'], 'article' => $createArray['article']])->save();
    }