Hotaru Docs

 [həʊdɒks]

Function Reference/updatePost

Description

Updates existing post to the database.

Usage

<?php updatePost( ) ?>

Parameters

none - instead of passing parameters, the $h->post object should have its properties populated

$h->post->author $h->post->status $h->post->type $h->post->category $h->post->tags $h->post->title $h->post->origUrl $h->post->domain $h->post->url $h->post->content $h->post->subscribe

Return Values

boolean true.

Examples

<?php
     $h->post->id= 5;
     $h->post->title = "title";
     $h->post->content = "content";
     $h->post->type ="news";
     $h->updatePost();
?>

Source File

updatePost() is located in content/hotaru.php which calls the post.php file from the LIBS folder.

Related