phpScheduleIt
May 18, 2013, 10:17:10 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Extending phpScheduleIt (2.2.2)  (Read 1763 times)
TheoretixSoftwareSolution
Newbie
*

Karma: 0
Posts: 8


« on: July 04, 2012, 06:31:42 PM »

Hi all,
bit of a newb here..
I have been working to do some customization to phpscheduleit for a client of mine. I am wondering how we handle changing the code w/o embedding it so deep that we cannot upgrade?

ex: I've created buttons to filter based on "offline"/"online"  for the end point http://example.com/schedule/Web/admin/manage_reservations.php

It required updates to Pages/ManageResources.php ,  lib/Database/Command/Queries.php ,  Domain/Access/ResourceRepository.php ... etc.

When it comes time to upgrade to 2.3 how will those changes be kept?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: July 09, 2012, 01:56:49 PM »

The short answer is that the changes won't make it through an upgrade. You'll need to reapply them manually.

I am trying to make the app as pluggable as possible, though. If you have areas where you think an extension point would be valuable I'd love to hear about it.
Logged
TheoretixSoftwareSolution
Newbie
*

Karma: 0
Posts: 8


« Reply #2 on: July 19, 2012, 02:44:39 PM »

Has there been any thought to making it more of a library/Framework than a full on system? So one could instead use the pieces in our own pages.. Then to make our own bits we just extend the library or something like that.. Kind like how I can extend pieces of Zend Framework and still just go into the lib and do svn up and more or less end up with a functioning system.  I'll think through a way to do something in between to get extensibility into the project.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #3 on: July 23, 2012, 02:20:34 PM »

It's a difficult balance to achieve. What would be the top 3 components that you'd want extracted into reusable pieces?
Logged
TheoretixSoftwareSolution
Newbie
*

Karma: 0
Posts: 8


« Reply #4 on: August 10, 2012, 05:34:56 PM »

Hey Nick,
Sorry, I got lost in the code..
I've since been going deep into phpschedule it. I've basically been adding a "Location" to all bookings. So a reservation will be made by a user of a resource and it will be utilised at a location.
Ex: John(user) will book the Garbage Cleanup Crew (resource) at the Rock Concert Site (location). I'm probably about 80% done.

As for what re-usable bits am i thinking; I'm not too sure at this point. Pieces I've modified that will be broken by upgrade include the additional translations, and a bunch of sql bits
lib/Database/Commands/Queries.php <--- get locations etc queries
lib/Database/Commands/Commands.php
lib/Database/Commands/ColumnNames.php <--- location column names
lib/Database/Commands/ParameterNames.php

also some cleaning up stuff could be done, like Namespaces, one class/interface per file...

It could be written as a ZF2 module and just use ZF's pieces like Views, Db_table adapters, ZendX_Jquery etc.

Would also love to see this hosted as a github project so others can freely contribute to it, fork etc...

Lots of thoughts, I know there isnt enough time in the day for even 1/2 of it. Smiley

Thanks for what you've written thus far.
Logged
luciobolton
Newbie
*

Karma: 0
Posts: 1


« Reply #5 on: August 24, 2012, 11:51:08 AM »

Hello.....I am also a newbie like you and learning php for several days..Hope will get lots of help from the forum friends..
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!