From: Mitra <mi...@mi...> - 2003-01-16 00:01:21
|
I've updated site.php3, added some functions to support shorter more functional site files, specifically 01/16/02 - added functions to module/site/site.php3 for site_* files (mitra) -- ModW_id2item - convert id to item enabling aliases etc -- ModW_arr2str - convert array back to string -- ModW_str2arr - convert apc= parameter string to array -- pass apc_state[item] on to unaliasing id2item is useful in that if your site parameters contain a single item id (a common case) you can setup $apc_state[item] = id2item($i,true); and then use expansion like {headline........} or {_#HEADLINE} The arr2str and str2arr are to provide simple conversion between a string parameter and the apc_state format of separated variables. - Mitra -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |