Property | Type | Description | |
---|---|---|---|
HexByteArrayToHexString | string |
Method | Description | |
---|---|---|
CreateFilename ( int userid, string filename ) : string | ||
CreateTagCloudOverlayContents ( List |
||
GetFilesFromFolder ( int folderID, int userId ) : IEnumerable |
||
GetTop100Tags ( IPAWAContext dbContext ) : List |
Gets the 100 most used tags from the database.
|
|
GetUsers ( ) : IEnumerable |
Gets all users
|
|
ImageResize ( Image imgFile, |
Take in image, create a new bitmap, bitmap size = newsize Render and clean image Apply image to bitmap Return the thumbnail
|
|
PhotoValidation ( System.Web.HttpPostedFileBase image ) : System.Boolean |
Confirms that the file uploaded is not null and is a image of the required type.
|
|
TagUsedCountIncrease ( string tagName ) : void |
Increase the selected tags usedcount in the database by 1 everytime this method is called
|
|
changeFolderName ( int userID, int folderID, string newFolderName ) : bool | ||
checkExtension ( string file ) : System.Drawing.Imaging.ImageFormat |
Checks the extension of the image and returns the correct format for saving
|
|
checkIfTagExists ( string TagArr ) : List |
Will used the passed array to compare against the DB, if the tag doesnt exist it will create it. returning all of the images tags IDs in a List(int)
|
|
convertTagsToString ( List |
Combines all the tagIDs from a List into a string for AlbumView Display
|
|
createTag ( string name, string type ) : void |
Used to insert tags into the DB
|
|
deselectFile ( int id ) : void |
removes a file from the list of files set totalcount - 1
|
|
findInfinateParentLoop ( |
||
getFiles ( int userID ) : IList |
||
getFolder ( int userID, int folderID ) : |
Returns the specific Folder, given the Folder ID and the User ID.
|
|
getFolder ( int userID, string folderID ) : |
The overloaded Get folder method.
|
|
getFolders ( int userID ) : IList |
Returns all of the users owned folders in a List(folders)
|
|
getTag ( int id ) : |
||
getTagID ( string tag ) : int |
Used to get the tags id via passed tag name
|
|
getUserByID ( int id ) : |
Gets the Users object via passed ID
|
|
insertImageToDB ( int Height, int Width, int FileSize, string FileName, string Tags, string Description, int FolderID ) : void |
Uses all passed parimeters to create a new db image object, then pushes it into the db and saves
|
|
isSubfolder ( |
Returns 1 if the subfolder is within the directory tree of the parent folder. Returns 0 if root folder . If the subfolder is in a nonconventional loop(root folder is missing), the return is -1.
|
|
moveFolder ( int userID, string folderToMoveID, int destinationFolderID ) : bool | ||
moveFolder ( int userID, string folderToMoveID, string destinationFolderID ) : bool | ||
selectFile ( int id ) : List |
SelectFile(int) adds a file from the list of files set totalcount + 1
|
|
seperateTags ( string s ) : string[] |
Seperate the string via ',' Replace , with space cut up string via spaces and store into array. return array.
|
Method | Description | |
---|---|---|
HexByteArrayToHexString ( byte hexValues, string fileExtension ) : string |
Converts a hexadecimal byte array into a filename string representing the hexadecimal bytes.
|
public CreateFilename ( int userid, string filename ) : string | ||
userid | int | |
filename | string | |
return | string |
public static CreateTagCloudOverlayContents ( List |
||
tags | List |
|
return | string |
public GetFilesFromFolder ( int folderID, int userId ) : IEnumerable |
||
folderID | int | |
userId | int | |
return | IEnumerable |
public static GetTop100Tags ( IPAWAContext dbContext ) : List |
||
dbContext | IPAWAContext | |
return | List |
public ImageResize ( Image imgFile, |
||
imgFile | Image | |
newSize | ||
return | Image |
public PhotoValidation ( System.Web.HttpPostedFileBase image ) : System.Boolean | ||
image | System.Web.HttpPostedFileBase | |
return | System.Boolean |
public TagUsedCountIncrease ( string tagName ) : void | ||
tagName | string | |
return | void |
public changeFolderName ( int userID, int folderID, string newFolderName ) : bool | ||
userID | int | |
folderID | int | |
newFolderName | string | |
return | bool |
public checkExtension ( string file ) : System.Drawing.Imaging.ImageFormat | ||
file | string | |
return | System.Drawing.Imaging.ImageFormat |
public checkIfTagExists ( string TagArr ) : List |
||
TagArr | string | |
return | List |
public convertTagsToString ( List |
||
TagIDs | List |
|
return | string |
public createTag ( string name, string type ) : void | ||
name | string | |
type | string | |
return | void |
public findInfinateParentLoop ( |
||
testFolderIn | ||
return | int |
public getFolder ( int userID, int folderID ) : |
||
userID | int | ID of the user to witch the folder pertains. |
folderID | int | ID of the folder that is being fetched. |
return |
public getFolder ( int userID, string folderID ) : |
||
userID | int | ID of the user to witch the folder pertains. |
folderID | string | ID of the folder that is being fetched. |
return |
public insertImageToDB ( int Height, int Width, int FileSize, string FileName, string Tags, string Description, int FolderID ) : void | ||
Height | int | |
Width | int | |
FileSize | int | |
FileName | string | |
Tags | string | |
Description | string | |
FolderID | int | |
return | void |
public isSubfolder ( |
||
subfolder | Folder that is presumed to be a child of the parent folder | |
parentFolder | folder that is persumed to contain the sub folder | |
return | int |
public moveFolder ( int userID, string folderToMoveID, int destinationFolderID ) : bool | ||
userID | int | |
folderToMoveID | string | |
destinationFolderID | int | |
return | bool |
public moveFolder ( int userID, string folderToMoveID, string destinationFolderID ) : bool | ||
userID | int | |
folderToMoveID | string | |
destinationFolderID | string | |
return | bool |