You are viewing the PKP Support Forum | PKP Home Wiki


OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.


Postby derekp » Wed Mar 19, 2008 3:16 pm

In OCS 2.0.0-1, RegistrationTypeDAO::getOpenRegistrationTypesBySchedConfId() is defined but never called. Furthermore, it would not work correctly, since it is missing a call to DAO::dateToDB(). I suggest removing the whole function from the code.
Code: Select all
         * Retrieve an array of open registration types matching a particular scheduled conference ID.
         * @param $schedConfId int
         * @return object DAOResultFactory containing matching RegistrationTypes
        function &getOpenRegistrationTypesBySchedConfId($schedConfId, $rangeInfo = null) {
                $time = time();
                $result = &$this->retrieveRange(
                        'SELECT * FROM registration_types WHERE sched_conf_id = ? AND opening_date < ' . $time . ' AND closing_date < ' . $time . ' ORDER BY seq',
                         $schedConfId, $rangeInfo

                $returner = &new DAOResultFactory($result, $this, '_returnRegistrationTypeFromRow');
                return $returner;
Posts: 16
Joined: Wed Oct 10, 2007 12:45 am
Location: University of British Columbia

Re: RegistrationTypeDAO::getOpenRegistrationTypesBySchedConfId()

Postby asmecher » Thu Mar 20, 2008 8:51 pm

Hi Derek,

Thanks for the heads-up -- this function has been removed from CVS (http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3310).

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OCS Development

Who is online

Users browsing this forum: No registered users and 1 guest