SharedProjectsUtil
Extends:
Member Summary
Public Members | ||
public get |
utilName: * |
Method Summary
Public Methods | ||
public |
getAssetLibs(project: *): * |
|
public |
getAssetPath(projectId: *): * |
|
public |
getAssetPathUrl(projectId: *): * |
|
public |
getAvailableLibs(project: *): * |
|
public |
getBackup(project: *): * |
|
public |
getCoreLibs(): * |
|
public |
getCreditsTextArray(proj: *): * |
|
public |
getLicenceTextArray(proj: *): * |
|
public |
getNewProjectName(randomize: boolean): * |
|
public |
getProjectAssetPorts(proj: *, includeLibraryAssets: boolean): * |
|
public |
getProjectExampleOps(proj: *): * |
|
public |
getScreenShotFileName(proj: *, ext: *): * |
|
public |
getScreenShotPath(pId: *): * |
|
public |
makeExportable(p: *, keepAlso: *[]): * |
|
public |
makeReadable(ps: *, keepOps: *, allowEdit: *): {} | *[] | * reduces the object to information that can be sent "over the wire", removes private information, will add isExample and opExampleFor information for projects that are marked as an example for ops * |
|
public |
saveProjectScreenshot(proj: *, bodyScreenshot: *): * |
Private Methods | ||
private |
_makeProjectReadable(project: *, keepOps: boolean, allowEdit: boolean): * |
Public Members
public get utilName: * source
Public Methods
public getAssetPath(projectId: *): * source
Params:
Name | Type | Attribute | Description |
projectId | * |
Return:
* |
public getAssetPathUrl(projectId: *): * source
Params:
Name | Type | Attribute | Description |
projectId | * |
Return:
* |
public getAvailableLibs(project: *): * source
Params:
Name | Type | Attribute | Description |
project | * |
Return:
* |
public getNewProjectName(randomize: boolean): * source
Params:
Name | Type | Attribute | Description |
randomize | boolean |
|
Return:
* |
public getProjectAssetPorts(proj: *, includeLibraryAssets: boolean): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
includeLibraryAssets | boolean |
|
Return:
* |
public getProjectExampleOps(proj: *): * source
Params:
Name | Type | Attribute | Description |
proj | * |
Return:
* |
public getScreenShotFileName(proj: *, ext: *): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
ext | * |
Return:
* |
public makeExportable(p: *, keepAlso: *[]): * source
Params:
Name | Type | Attribute | Description |
p | * | ||
keepAlso | *[] |
|
Return:
* |
public makeReadable(ps: *, keepOps: *, allowEdit: *): {} | *[] | * source
reduces the object to information that can be sent "over the wire", removes private information, will add isExample and opExampleFor information for projects that are marked as an example for ops *
Params:
Name | Type | Attribute | Description |
ps | * | project or array of projects |
|
keepOps | * | do not remove ops from the project (i.e. in export) |
|
allowEdit | * |
Return:
{} | *[] | * | project or array of projects |
public saveProjectScreenshot(proj: *, bodyScreenshot: *): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
bodyScreenshot | * |
Return:
* |
Private Methods
private _makeProjectReadable(project: *, keepOps: boolean, allowEdit: boolean): * source
Params:
Name | Type | Attribute | Description |
project | * | ||
keepOps | boolean |
|
|
allowEdit | boolean |
|
Return:
* |