This function is part of the model_ProjectFiles model. Browse related handlers using the tags: project, json, file, and find the function here on github
Handler: project_JsonFile (projectName) OS: all Platforms: all Type: function
# Todo - [x] Change Me
# Where
File: model_ProjectFiles.livecodescript Hkey: F project_JsonFile Kind: model Path: models/model_ProjectFiles.livecodescript Project: lcw Script: stack "model_ProjectFiles"
# Code
digraph "default_header" { graph [ clusterrank="true" ]; subgraph "G" { node [fillcolor="grey50", style="filled", color="white"]; n18 [label="project_Folder" URL="G+project_Folder+of+stack+%27model_Project%27"]; } subgraph "F" { node [fillcolor="GreenYellow", style="filled", color="Green4"]; n12 [label="array_Get" URL="F+array_Get+of+stack+%27lib_LCW%27"]; n3 [label="project_FolderFromPath" URL="F+project_FolderFromPath+of+stack+%27model_Project%27"]; n2 [label="pref_FetchData" URL="F+pref_FetchData+of+stack+%27lib_LCW%27"]; n11 [label="pref_FetchData" URL="F+pref_FetchData+of+stack+%27model_Prefs%27"]; n16 [label="project_GetFolder" URL="F+project_GetFolder+of+stack+%27model_ProjectFiles%27"]; n14 [label="env_ConstructProjectFolder" URL="F+env_ConstructProjectFolder+of+stack+%27lib_LCW%27"]; n10 [label="pref_FetchArray" URL="F+pref_FetchArray+of+stack+%27model_Prefs%27"]; n7 [label="env_GetLcwFolder" URL="F+env_GetLcwFolder+of+stack+%27model_Environment%27"]; n13 [label="pref_File" URL="F+pref_File+of+stack+%27model_Prefs%27"]; n6 [label="env_GetLcwFolder" URL="F+env_GetLcwFolder+of+stack+%27lib_LCW%27"]; n5 [label="env_GetRepoFolder" URL="F+env_GetRepoFolder+of+stack+%27lib_LCW%27"]; n4 [label="env_GetRepoFolder" URL="F+env_GetRepoFolder+of+stack+%27model_Environment%27"]; n1 [label="pref_FetchArray" URL="F+pref_FetchArray+of+stack+%27lib_LCW%27"]; n9 [label="pref_FetchValue" URL="F+pref_FetchValue+of+stack+%27model_Prefs%27"]; n8 [label="pref_GetValue" URL="F+pref_GetValue+of+stack+%27model_Prefs%27"]; n19 [label="pref_FetchValue" URL="F+pref_FetchValue+of+stack+%27lib_LCW%27"]; n15 [label="folder_AddShort" URL="F+folder_AddShort+of+stack+%27lib_LCW%27"]; n20 [label="pref_GetValue" URL="F+pref_GetValue+of+stack+%27lib_LCW%27"]; n21 [label="project_JsonFile" URL="F+project_JsonFile+of+stack+%27model_ProjectFiles%27"]; n22 [label="project_ConstructJsonFile" URL="F+project_ConstructJsonFile+of+stack+%27model_ProjectFiles%27"]; n23 [label="pref_File" URL="F+pref_File+of+stack+%27lib_LCW%27"]; } subgraph "C" { node [fillcolor="LightBlue", style="filled", color="Blue"]; n24 [label="text_AddTrailing" URL="C+text_AddTrailing+of+stack+%27lib_LCW%27"]; } subgraph "M" { node [fillcolor="Orange", style="filled", color="Red"]; n17 [label="folder_Add" URL="M+folder_Add+of+stack+%27lib_LCW%27"]; n25 [label="text_AddTrailing" URL="M+text_AddTrailing+of+stack+%27lib_Encoding%27"]; } subgraph cluster1 { label="stack \"lib_Encoding\""; style=filled; color=grey60; fillcolor=grey60; n25 } subgraph cluster2 { label="stack \"lib_LCW\""; style=filled; color=grey60; fillcolor=grey60; n12; n2; n17; n14; n6; n5; n1; n19; n15; n20; n23; n24 } subgraph cluster3 { label="stack \"model_Environment\""; style=filled; color=grey60; fillcolor=grey60; n7; n4 } subgraph cluster4 { label="stack \"model_Prefs\""; style=filled; color=grey60; fillcolor=grey60; n11; n10; n13; n9; n8 } subgraph cluster5 { label="stack \"model_Project\""; style=filled; color=grey60; fillcolor=grey60; n3; n18 } subgraph cluster6 { label="stack \"model_ProjectFiles\""; style=filled; color=grey60; fillcolor=grey60; n16; n21; n22 } n6 -> n20; n6 -> n19; n14 -> n15; n14 -> n5; n22 -> n16; n2 -> n12; n2 -> n23; n3 -> n4; n18 -> n3; n16 -> n14; n16 -> n17; n16 -> n18; n17 -> n24; n9 -> n10; n11 -> n13; n11 -> n12; n15 -> n24; n10 -> n11; n7 -> n9; n7 -> n8; n4 -> n7; n4 -> n25; n19 -> n1; n5 -> n6; n1 -> n2; n21 -> n21; n21 -> n22; }
function project_JsonFile projectName put project_ConstructJsonFile (projectName) into projectJsonFile if there is a file projectJsonFile then return projectJsonFile else return empty end if end project_JsonFile
# Calls - project_ConstructJsonFile
# Depends Here is a list of stacks containing dependencies upon which this handler depends: - model_Prefs, lib_Encoding, model_Project, lib_LCW, model_Environment
# See also - Fedwiki Tools