From: Steven L. <st...@tu...> - 2003-11-05 21:17:19
|
Hello Everyone, There is another necessary change I have recently discovered which was not covered in the docs that I sent out. If you are the using the approval or fatcat module you will need add a require_once() in the conf files for each class that is needed. Examples: announce/conf/approval.php <?php if($_SESSION["OBJ_user"]->allow_access("announce")){ require_once(PHPWS_SOURCE_DIR.'mod/announce/class/Announcement.php'); if ($approvalChoice == "yes"){ PHPWS_Announcement::approve($id); } else if ($approvalChoice == "no") { PHPWS_Announcement::refuse($id); } else if ($approvalChoice == "view") { $ann = new PHPWS_Announcement($id); echo $ann->view("small", TRUE); } } ?> calendar/conf/fatcat.php <?php require_once PHPWS_SOURCE_DIR . "mod/calendar/class/Calendar.php"; $className = "PHPWS_Calendar"; $methodName = "viewFatCatEvent"; ?> And thats all. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |
From: Richard S. <ri...@ri...> - 2003-11-05 22:13:56
|
Does the new 09.3-2 have more generic queries to work across more databases? Also, approximately when is it expected to be released ;-) - Richard S. On Nov 5, 2003, at 1:12 PM, Steven Levin wrote: > Hello Everyone, > > There is another necessary change I have recently discovered which > was > not covered in the docs that I sent out. If you are the using the > approval or fatcat module you will need add a require_once() in the > conf > files for each class that is needed. > > Examples: > announce/conf/approval.php > <?php > > if($_SESSION["OBJ_user"]->allow_access("announce")){ > require_once(PHPWS_SOURCE_DIR.'mod/announce/class/Announcement.php'); > > if ($approvalChoice == "yes"){ > PHPWS_Announcement::approve($id); > } else if ($approvalChoice == "no") { > PHPWS_Announcement::refuse($id); > } else if ($approvalChoice == "view") { > $ann = new PHPWS_Announcement($id); > echo $ann->view("small", TRUE); > } > } > > ?> > > calendar/conf/fatcat.php > <?php > > require_once PHPWS_SOURCE_DIR . "mod/calendar/class/Calendar.php"; > > $className = "PHPWS_Calendar"; > $methodName = "viewFatCatEvent"; > > ?> > > And thats all. > -- > Steven Levin > Computer Systems Admin I > Electronic Student Services > Appalachian State University > Phone: 828.262.6740 > http://phpwebsite.appstate.edu > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |
From: Wendall C. <we...@83...> - 2003-11-06 10:46:16
|
Stephen, This still works for me: // get a list of the categories for this feed from FatCat $tags["CATEGORY"]$_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), "rssfeeds"); Should I change this to be consistent with the new changes? Wendall On Wed, 2003-11-05 at 13:12, Steven Levin wrote: > Hello Everyone, > > There is another necessary change I have recently discovered which was > not covered in the docs that I sent out. If you are the using the > approval or fatcat module you will need add a require_once() in the conf > files for each class that is needed. > > Examples: > announce/conf/approval.php > <?php > > if($_SESSION["OBJ_user"]->allow_access("announce")){ > require_once(PHPWS_SOURCE_DIR.'mod/announce/class/Announcement.php'); > > if ($approvalChoice == "yes"){ > PHPWS_Announcement::approve($id); > } else if ($approvalChoice == "no") { > PHPWS_Announcement::refuse($id); > } else if ($approvalChoice == "view") { > $ann = new PHPWS_Announcement($id); > echo $ann->view("small", TRUE); > } > } > > ?> > > calendar/conf/fatcat.php > <?php > > require_once PHPWS_SOURCE_DIR . "mod/calendar/class/Calendar.php"; > > $className = "PHPWS_Calendar"; > $methodName = "viewFatCatEvent"; > > ?> > > And thats all. |
From: Steven L. <st...@tu...> - 2003-11-06 16:52:18
|
On Wed, 2003-11-05 at 17:13, Richard Sumilang wrote: > Does the new 09.3-2 have more generic queries to work across more > databases? Also, approximately when is it expected to be released ;-) Richard, No 0.9.3-2 will have the same database class as it did before. That is the one class I did not split off the core. There is so much work to be done with the database I feel that needs to be done in a different version change maybe -3 or -4. I was already asking for so much this version I did not want to ask for anything else. As for a release schedule I hope to have an RC out tomorrow so people can test over the weekend. We would like to have this new version running our sites ASAP. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |
From: Steven L. <st...@tu...> - 2003-11-06 16:56:05
|
On Wed, 2003-11-05 at 17:32, Wendall Cada wrote: > Stephen, > > This still works for me: > // get a list of the categories for this feed from FatCat > $tags["CATEGORY"]$_SESSION['OBJ_fatcat']->fatcatLinks($this->getId(), > "rssfeeds"); > > Should I change this to be consistent with the new changes? Wendall, You can still access the fatcat object through the session like that. There are still several modules which run ALWAYS (ie. layout, users, fatcat) which could not be avoided at this point. So no fatcat calls have to be updated. Mainly just calls to core classes. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |