0
$tags_cleaned_string = "{{".implode("}},{{", $tags_cleaned)."}}";
0
- $sql->insert("tags", array("tags" => ":tags", "clean" => ":clean", "post_id" => ":post_id"), array(
0
- ":tags" => $tags_string,
0
- ":clean" => $tags_cleaned_string,
0
- ":post_id" => $post->id
0
+ $sql->insert("tags", array("tags" => $tags_string, "clean" => $tags_cleaned_string, "post_id" => $post->id));
0
public function update_post($post) {
0
if (empty($tags_string) and empty($tags_cleaned_string))
0
$sql->delete("tags", array("post_id" => $post->id));
0
- $sql->insert("tags", array("tags" => ":tags", "clean" => ":clean", "post_id" => ":post_id"), array(
0
- ":tags" => $tags_string,
0
- ":clean" => $tags_cleaned_string,
0
- ":post_id" => $post->id
0
+ $sql->insert("tags", array("tags" => $tags_string, "clean" => $tags_cleaned_string, "post_id" => $post->id));
0
public function delete_post($post) {
0
array(Post::$private, Post::$enabled_feathers),
0
- array(":tag" => "%{{".$_GET['name']."}}%"),
0
array(array("table" => "tags",
0
- "where" => array("post_id = posts.id",
"clean LIKE :tag"))))->fetchAll() as $tag) {
0
+ "where" => array("post_id = posts.id",
array("clean like" => "%{{".$_GET['name']."}}%"))))->fetchAll() as $tag) {
0
if ($tag["id"] == null)
0
foreach($sql->select("tags",
0
- array(":tag" => "%{{".$_POST['clean']."}}%"))->fetchAll() as $tag) {
0
+ array("clean like" => "%{{".$_POST['clean']."}}%"))->fetchAll() as $tag) {
0
$names = str_replace("{{".$_POST['clean']."}}", "{{".$_POST['name']."}}", $tag["tags"]);
0
$clean = str_replace("{{".$_POST['clean']."}}", "{{".sanitize($_POST['name'])."}}", $tag["clean"]);
0
if (!empty($tags) and !empty($cleaned))
0
SQL::current()->insert("tags",
0
- array("tags" => ":tags",
0
- "post_id" => ":post_id"),
0
- array(":tags" => rtrim($tags, ","),
0
- ":clean" => rtrim($cleaned, ","),
0
- ":post_id" => $post->id));
0
+ array("tags" => rtrim($tags, ","),
0
+ "clean" => rtrim($cleaned, ","),
0
+ "post_id" => $post->id));
0
public function import_wordpress_post($item, $post) {
0
if (!empty($tags) and !empty($cleaned))
0
SQL::current()->insert("tags",
0
- array("tags" => ":tags",
0
- "post_id" => ":post_id"),
0
- array(":tags" => rtrim($tags, ","),
0
- ":clean" => rtrim($cleaned, ","),
0
- ":post_id" => $post->id));
0
+ array("tags" => rtrim($tags, ","),
0
+ "clean" => rtrim($cleaned, ","),
0
+ "post_id" => $post->id));
0
public function import_movabletype_post($array, $post, $link) {
0
$clean_string = "{{".implode("}},{{", array_values($tags))."}}";
0
- $sql->insert("tags", array("tags" => ":tags", "clean" => ":clean", "post_id" => ":post_id"), array(
0
- ":tags" => $dirty_string,
0
- ":clean" => $clean_string,
0
- ":post_id" => $post->id
0
+ $sql->insert("tags", array("tags" => $dirty_string, "clean" => $clean_string, "post_id" => $post->id));
0
public function metaWeblog_getPost($struct, $post) {