Ejemplo n.º 1
0
 /**
  * remove tags from post
  *
  * @param      <type>  $_post_id  The post identifier
  */
 public static function remove($_post_id)
 {
     $args = ['termusage_id' => $_post_id, 'termusage_foreign' => 'posts'];
     return \lib\db\termusages::remove($args);
 }
Ejemplo n.º 2
0
 public static function set($_cats_id, $_post_id)
 {
     $args = ['term_id' => $_cats_id, 'termusage_id' => $_post_id, 'termusage_foreign' => 'posts'];
     return \lib\db\termusages::insert($args);
 }