var itm = 1; var results = arrayNew(1); var elementData = application.ptTags.tagsDAO.getByContentID(arguments.contentID); for( itm=1; itm lte arrayLen(elementData); itm=itm+1 ) { arrayAppend(results, elementData[itm].values.tag); } return results; var itm = 1; var results = arrayNew(1); var elementData = application.ptTags.tagsDAO.getByParentContentID(arguments.parentContentID); for( itm=1; itm lte arrayLen(elementData); itm=itm+1 ) { arrayAppend(results, elementData[itm].values.tag); } return results; var itm = 1; var results = ""; var tagExists = false; var tag = ""; var tagID = ""; for( itm; itm lte listLen(arguments.tags, "^"); itm=itm+1 ) { tag = listGetAt(arguments.tags, itm, "^"); // check to see if this tag exists for the given parentContentID/contentID if( arguments.parentContentID neq 0 ) tagID = application.ptTags.tagsDAO.existsByParentContentID(tag, arguments.parentContentID); else tagID = application.ptTags.tagsDAO.existsByContentID(tag, arguments.contentID); // if it doesn't exist add it if( not len(tagID) ) tagID = application.ptTags.tagsDAO.add(tag, contentID, parentContentID); results = listAppend(results, tagID); } return results; var itm = 1; var tagNameList = ""; var tagItem = ""; var data = application.ptTags.tagsDAO.getByTagIDList(arguments.tagIDList); for( itm=1; itm lte arrayLen(data); itm=itm+1 ) { // Check if we need to build an anchor tag if ( LEN(arguments.anchorHref) ) tagItem = "#data[itm].values.tag#"; else tagItem = data[itm].values.tag; tagNameList = listAppend(tagNameList, tagItem, arguments.delim); } return tagNameList; var retData = StructNew(); var tagID = ""; var tagName = ""; var itm = 1; var tagData = application.ptTags.tagsDAO.getByContentID(contentID=arguments.contentID); for( itm=1; itm lte arrayLen(tagData); itm=itm+1 ) { tagID = tagData[itm].values.uniqueID; tagName = tagData[itm].values.tag; if ( !StructKeyExists(retData,tagID) ) retData[tagID] = tagName; } return retData; var retData = StructNew(); var tagID = ""; var tagName = ""; var itm = 1; var tagData = application.ptTags.tagsDAO.getByContentID(contentID=arguments.contentID); for( itm=1; itm lte arrayLen(tagData); itm=itm+1 ) { tagID = tagData[itm].values.uniqueID; tagName = tagData[itm].values.tag; if ( !StructKeyExists(retData,tagName) ) retData[tagName] = tagID; } return retData; var retData = StructNew(); retData.tagName = arguments.tag; retData.tagStatus = "exists"; retData.tagID = application.ptTags.tagsDAO.existsByContentID(tag=arguments.tag,contentID=arguments.contentID); retData.contentID = arguments.contentID; if ( LEN(TRIM(retData.tagID)) EQ 0 ) { retData.tagID = CREATEUUID(); retData.tagStatus = "new"; } return retData; var retArr = ArrayNew(1); var tag = ""; var i = 1; for ( i=1; i lte listLen(arguments.tags,","); i=i+1 ) { tag = trim(ListGetAt(arguments.tags,i,",")); tagData = prepareTagForTagBlock(tag=tag,contentID=arguments.contentID); arrayAppend(retArr,tagData); } return retArr; var results = ""; var tagName = ""; var tagID = ""; var key = ""; for( key IN arguments.tagData ) { tagName = arguments.tagData[key]; // check to see if this tag exists for the given parentContentID/contentID if( arguments.parentContentID neq 0 ) tagID = application.ptTags.tagsDAO.existsByParentContentID(tagName, arguments.parentContentID); else tagID = application.ptTags.tagsDAO.existsByContentID(tagName, arguments.contentID); // if it doesn't exist add it if( len(trim(tagID)) EQ 0 ) tagID = application.ptTags.tagsDAO.add(tagName, contentID, parentContentID, key); results = listAppend(results, tagID); } return results;