Page Templates:Functions
From Whirlwind eCommerce Wiki
Revision as of 05:32, 1 October 2008 by Root (Talk | contribs) (New page: A series of custom functions are created to allow content management to easily access content they require to build the copy in templates: *eV::addressStateOptions($value=NULL); returns s...)
A series of custom functions are created to allow content management to easily access content they require to build the copy in templates:
- eV::addressStateOptions($value=NULL); returns string of option tags for states
- eV::addressCountryOptions($value=NULL); returns string of option tags for countries
- eV::pageContentAttribsSet($array)
- eV::pageContentAttribSet($replaceString,$resultString);
- eV::pageContentAttribSetStart($replaceString) / eV::pageContentAttribSetEnd()
- eV::pageMenuGet($menuId=NULL) returns $arrMenu (array)
- eV::pagesGet($pageIdOrKeywordsOrPageIdArray,$fieldList=NULL,$orderBy=NULL,$orderDir="DESC",$orderType="str",$showNoSearch=true)
- eV::pageChildrenGet($pageId,$fieldList=NULL,$orderBy=NULL,$orderDir=(DESC,ASC),$orderType(str,num)) returns $arrChildren (array)
- eV::pageSearchGet($keywords,$fieldList=NULL,$orderBy=NULL,$orderDir=(DESC,ASC),$orderType(str,num)) returns $arrSearch (array)
- eV::pageZoneGet($zoneId,$pageId,$dBug=0) returns bannerOutput (string)
- eV::pageForumPostsGet($userId=NULL,$pageId=NULL,$templateIdList=NULL,$fieldList=NULL,$orderBy=NULL) returns array (forumPostLink,ratingCount,ratingCount[1-5],ratingTotal,ratingAverage,posts[])
- eV::pagePollQuestionsGet($pageId)
- eV::pagePollResultsGet($pageId)
- eV::pageBreadcrumbsFamilyGet($pageId)
- eV::pageBreadcrumbsHistoryGet($pageId,$breadcrumb)
- eV::pageProductsGet($pageId,$fieldList)
- eV::recentlyViewedAdd($pageId) // appends recently viewed array
- eV::recentlyViewedGet($fieldList) //returns array of page data for recently viewed items
- eV::pageCustomSearchGroup($groupIdOrName) // returns array[groupName,groupId,groupNotes,selectField,options[optionsId,optionName,link]]
- eV::prodOptionString2Array($optionValue)
- eV::orderGetPayTypes() // returns array of ACTIVE pay types, dim 2: payType, payTypeName
- eV::usersGet($fieldList,$userIdList,$orderBy=NULL,$orderDir="DESC",$orderType="str")
- eV::userGetAddresses($fieldList,$userId=NULL) // userId defaults to session.user.userId if empty. returns multidimarray, first dim = address index, 2nd dim is keys for each field. can pass fieldList to limit fields returned
- eV::userAccountAndAddressCreate($fieldList,$exitLocation=NULL) exitLocation reloads same page if empty. Also exitLocation can be passed as a post variable. returns array [values]array [customFieldTags]array [message]string
- eV::userAccountEdit($fieldList,$exitLocation=NULL,$userId=NULL) exitLocation reloads same page if empty. Also exitLocation can be passed as a post variable. userId defaults to session.user.userId. returns array [values]array [customFieldTags]array [message]string
- eV::userAddressAddEdit($fieldList) returns array [values]array [message]string
- eV::userBlogEntriesGet($fieldList,$orderBy=NULL,$userId=NULL)
- eV::userBlogEntryAddEdit($fieldList,$userId=NULL)
- eV::userBlogSetup($pageId=NULL,$userId=NULL) // page id defaults to first page belonging to user that is blog main page // userId defaults to session userId // adds blog page if none, returns blog pageId either way
- eV::userFriendsGet($fieldList,$userId=NULL) // userId defaults to session.user.userId. returnes 2 dim array [index][fieldName] for users that are on $userId's friend list
- eV::userWishListGet($fieldList,$userId=NULL); // userid defaults to session.user.userid. returns 2 min array[index][fieldName] for pages that are on $userIds wish list
- eV::usersAmbassadorGet($fieldList);
- eV::redirect($location)
- eV::valueArrayFromQuery($query,$fieldName)
- eV::ipBlockCheck($ipAddress,$forwardOnBlock=NULL) // returns T/F if address is blocked. if forwardOnBlock is passed, then it forwards to URL
- eV::pageForumPostsGet($userId=NULL,$pageId=NULL,$fieldList=NULL,$orderBy=NULL)
- eV::userBlogsGet($userId,$fieldList,$orderBy=NULL);
- eV:userFriendsGet($userId,$fieldList,$orderBy=NULL);
- eV:userWishListGet($userId,$fieldList,$orderBy=NULL);