function _eloqua_post_create in Eloqua 6
Creates the post object from the database
Parameters
$post:
Return value
int Newly created Post_id
1 call to _eloqua_post_create()
- eloqua_post_create in ./
eloqua.inc - Creates a post into the database @hook eloqua_post_create
1 string reference to '_eloqua_post_create'
- eloqua_post_create in ./
eloqua.inc - Creates a post into the database @hook eloqua_post_create
File
- ./
eloqua.inc, line 561
Code
function _eloqua_post_create($post) {
$sql = 'INSERT INTO ' . ELOQUA_SCHEMA_SAVED_POSTS . ' ( ' . ELOQUA_POST_FIELD_FORM_ID . ', ' . ELOQUA_POST_FIELD_POST_TIME . ', ' . ELOQUA_POST_FIELD_STATUS . ', ' . ELOQUA_POST_FIELD_DATA . ' ) ' . ' VALUES ' . " ('%s', %d, '%s', '%s') ";
$params = array(
$post->{ELOQUA_POST_FIELD_FORM_ID},
$post->{ELOQUA_POST_FIELD_POST_TIME},
$post->{ELOQUA_POST_FIELD_STATUS},
serialize($post->{ELOQUA_POST_FIELD_DATA}),
);
$result = _eloqua_insert_query($sql, $params, ELOQUA_SCHEMA_SAVED_POSTS, ELOQUA_POST_FIELD_POST_ID);
return $result;
}