代码如下 | 复制代码 |
function CreatePropertyArray(){ global $IP; $content = ''; $industris = array(); $industry_tree = array(); $content .= " //Industry $industries = getMasterPropertyValues('Industry'); foreach($industries as $v){ $industry_tree["$v"]= getSlavePropertyValues("Industry","Product Category", $v); } $content .= '$Industries = '. var_export($industries,true) . ";n"; file_put_contents($IP . '/termwiki_array.php',$content,LOCK_EX); } ?> |