/** * insert new tag in terms table * tag is a record of terms * so we set the term_type and send $_arg to terms::insert funciton * @param array $_args fields data * @return mysql result */ public static function insert($_args) { // jost tag can insert $_args['term_type'] = 'tag'; return terms::insert($_args); }
/** * insert new cat in terms table * cat is a record of terms * so we set the term_type and send $_arg to terms::insert funciton * @param array $_args fields data * @return mysql result */ public static function insert($_args) { // jost cat can insert $_args['term_type'] = self::check($_args['term_type']); return terms::insert($_args); }