What function do you want?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

What function do you want?

Post 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.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: What function do you want?

Post 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.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: What function do you want?

Post 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.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: What function do you want?

Post 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.
Last edited by duclet on Tue Apr 08, 2008 10:07 pm, edited 1 time in total.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: What function do you want?

Post 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+
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: What function do you want?

Post by duclet »

I added that. Enough with DLCodePress however, this topic is for DLSupport. Any functions you want added?
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: What function do you want?

Post 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.
Post Reply

Return to “Developers Discussion”