/** * Insert a new Record - static method: insertPaForumPost() * * * Generated with the DalClassGenerator created by: * Zoran Hron <*****@*****.**> * * @param params = array() * @result id **/ public static function insertPaForumPost($params = array()) { // object self instance $instance = new self(); // required fields names $db_fields = array("title", "content", "user_id", "parent_id", "thread_id", "is_active", "created_at", "updated_at", "modified_by"); // build argument list foreach ($db_fields as $param_name) { if (!array_key_exists($param_name, $params)) { throw new Exception("PaForumPost::insertPaForumPost() - Missing parameter {$param_name}."); } ${$param_name} = $params[$param_name]; } // call dynamic method return $instance->insert_PaForumPost($title, $content, $user_id, $parent_id, $thread_id, $is_active, $created_at, $updated_at, $modified_by); }