Method | Description | |
---|---|---|
Accessible ( |
Get whether the current request can access the collection
|
|
CheckNewCollectionName ( string name ) : bool |
Check whether a name can be used for creating a new collection
|
|
CheckNewCollectionPath ( string path ) : string |
Check whether a path can be used for creating a new collection
|
|
CreateNewCollection ( string name, string path, bool public_, bool autoadd ) : |
Create a new collection
|
|
DeleteCollections ( int ids ) : void |
Delete collections and all associated data from database
|
|
GetAccessible ( |
Get a list of collections from database which is accessible by the current user
|
|
GetAllCollectionNames ( ) : string[] |
Get the names of all the collections from database
|
|
GetAllCollections ( ) : afung.MangaWeb3.Server.Collection[] |
Get all collections from database
|
|
GetAutoAdd ( ) : afung.MangaWeb3.Server.Collection[] |
Get a list of collections from database which uses auto add
|
|
GetById ( int id ) : |
Get a collection from database by ID
|
|
GetByName ( string name ) : |
Get a collection from database by name
|
|
MarkFolderCacheDirty ( ) : void |
Mark Folder Cache Dirty
|
|
ProcessFolderCache ( ) : void |
Process folder cache and save it in database
|
|
Save ( ) : void |
Save the collection to database
|
|
SetCollectionsPublic ( int ids, bool public_ ) : void |
Set collections to be public/private
|
|
ToJson ( ) : |
Get an object to be stringified and passed to client app
|
|
ToJsonArray ( |
Get an array of CollectionJson to be passed to client app
|
Method | Description | |
---|---|---|
Collection ( ) : System |
Instantiate a new instance of Collection class
|
|
FromData ( object>.Dictionary |
Create a new instance of Collection using data from database
|
public Accessible ( |
||
ajax | The AjaxBase object which received the request | |
return | bool |
public static CheckNewCollectionName ( string name ) : bool | ||
name | string | The name |
return | bool |
public static CheckNewCollectionPath ( string path ) : string | ||
path | string | |
return | string |
public static CreateNewCollection ( string name, string path, bool public_, bool autoadd ) : |
||
name | string | The collection name |
path | string | The collection path |
public_ | bool | Whether the collection is public |
autoadd | bool | Whether the collection uses auto add |
return |
public static DeleteCollections ( int ids ) : void | ||
ids | int | A list of collection IDs |
return | void |
public static GetAccessible ( |
||
ajax | The AjaxBase object which received the request | |
return | afung.MangaWeb3.Server.Collection[] |
public static GetAllCollectionNames ( ) : string[] | ||
return | string[] |
public static GetAllCollections ( ) : afung.MangaWeb3.Server.Collection[] | ||
return | afung.MangaWeb3.Server.Collection[] |
public static GetAutoAdd ( ) : afung.MangaWeb3.Server.Collection[] | ||
return | afung.MangaWeb3.Server.Collection[] |
public static GetById ( int id ) : |
||
id | int | |
return |
public static GetByName ( string name ) : |
||
name | string | The name |
return |
public static SetCollectionsPublic ( int ids, bool public_ ) : void | ||
ids | int | A list of collection IDs |
public_ | bool | Whether is public or private |
return | void |
public ToJson ( ) : |
||
return |
public static ToJsonArray ( |
||
collections | An array of collections | |
return | afung.MangaWeb3.Common.CollectionJson[] |