Page 1 of 1
What function do you want?
Posted: Mon Apr 07, 2008 11:43 pm
by duclet
In an effect to truly make my DL Suite: Support module to be a useful module for other developers, I want to add functions (both PHP and JavaScript) that will help them in their development of their module. I have already added quite a few new functions for JavaScript. So while I continue to add more functionalities to it, I want your opinions on what functions I should add. So give me your suggestions.
Re: What function do you want?
Posted: Tue Apr 08, 2008 2:49 pm
by duclet
I see a lot of views but no replies. People don't need anything? Anyway, as an update. The following methods has been added to the JavaScript library:
combineArray: use one array as the key and another as the value and combine then to create an object.
inArray
isArray
isNumeric
propertyNames: get all the names of the properties of the given object
reverseArray
unqiueArray
In the PHP library, we have only one so far:
ValidateDepdency: currently, the dependency isn't checked when upgrading modules so I added this to check.
Re: What function do you want?
Posted: Tue Apr 08, 2008 7:31 pm
by cubix
ive seen a few posts around the forum from people having trouble installing dlcodepress.
i believe it may be a php4 issue but dont have an enviroment to test it.
Re: What function do you want?
Posted: Tue Apr 08, 2008 10:00 pm
by duclet
Yes, it is a PHP4 issue but I am only supporting PHP5 as CMS Made Simple has also made the switch to PHP5. I was originally a Java guy so I like OOP and hence I use PHP5 OOP features which aren't in 4.
Re: What function do you want?
Posted: Wed Apr 09, 2008 2:34 am
by cubix
ok, might want to let people know that before they download it (maybe in the forge under the description)
and cmsmadesimple supports php4+ however, the upcoming 2.0 release will be php5+
Re: What function do you want?
Posted: Wed Apr 09, 2008 3:37 pm
by duclet
I added that. Enough with DLCodePress however, this topic is for DLSupport. Any functions you want added?
Re: What function do you want?
Posted: Thu Apr 17, 2008 1:52 pm
by duclet
I have added some more functions:
checkboxSelectAllToggle: check or uncheck all checkboxes with a given class name.
cloneArray
curry: more of a fix than an edition, the previous version failed the closure requirement, this should fix it.
defaultValues: allows you to set up default values for the optional parameters.
toQueryString: convert the given object (associative array) to a query string.
AJAX: a wrapper object for ajax.
That is it for now. I'll continue to add more stuff to it as I go along. If there is any function you need, let me know people. This is all too quiet here.