コード例 #1
0
ファイル: tags.php プロジェクト: Ermile/Saloos-Addons
 /**
  * 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);
 }
コード例 #2
0
ファイル: cats.php プロジェクト: Ermile/Saloos-Addons
 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);
 }